moveItemTo method
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;
}