moveItemTo method

  1. @override
Future<bool> moveItemTo(
  1. int playlistId,
  2. int from,
  3. int to
)
override

Used to change song/audio position from a specific Playlist

Parameters:

  • playlistId is used to check if Playlist exist.
  • from is the old position from a audio/song.
  • to is the new position from a audio/song.

Platforms:

Android IOS Web
✔️

See more about platforms support

Implementation

@override
Future<bool> moveItemTo(int playlistId, int from, int to) async {
  final bool resultMoveItem = await _channel.invokeMethod(
    "moveItemTo",
    {
      "playlistId": playlistId,
      "from": from,
      "to": to,
    },
  );
  return resultMoveItem;
}