queueInsertItemAndPlay method
- GoogleCastQueueItem item, {
- 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;
}