queueReorderItems method

  1. @override
Future<void> queueReorderItems({
  1. required List<int> itemsIds,
  2. required int? beforeItemWithId,
})
override

Reorders items in the queue.

itemsIds - List of IDs of the items to reorder. beforeItemWithId - The ID of the item before which the reordered items will be placed. If null, the items will be placed at the end of the queue.

Implementation

@override
Future<void> queueReorderItems(
    {required List<int> itemsIds, required int? beforeItemWithId}) async {
  _channel.invokeMethod(
    'queueReorderItems',
    {
      'itemsIds': itemsIds,
      'beforeItemWithId': beforeItemWithId,
    },
  );
}