queueInsertItemAndPlay method

  1. @override
Future<void> queueInsertItemAndPlay(
  1. GoogleCastQueueItem item, {
  2. required int beforeItemWithId,
})
override

Inserts an item into the queue and plays it.

Implementation

@override
Future<void> queueInsertItemAndPlay(
  GoogleCastQueueItem item, {
  required int beforeItemWithId,
}) async {
  await _channel.invokeMethod('queueInsertItemAndPlay', {
    'item': item.toMap(),
    'beforeItemWithId': beforeItemWithId,
  });
}