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 {
  assert(beforeItemWithId >= 0, 'beforeItemWithId must be greater than 0');
  _channel.invokeMethod('queueInsertItemAndPlay', {
    'item': item.toMap(),
    'beforeItemWithId': beforeItemWithId,
  });
  return;
}