queueInsertItems method

  1. @override
Future<void> queueInsertItems(
  1. List<GoogleCastQueueItem> items, {
  2. int? beforeItemWithId,
})
override

Inserts items into the queue.

Implementation

@override
Future<void> queueInsertItems(List<GoogleCastQueueItem> items,
    {int? beforeItemWithId}) async {
  _channel.invokeMethod('queueInsertItems', {
    'items': items.map((item) => item.toMap()).toList(),
    'beforeItemWithId': beforeItemWithId,
  });
}