moveItemTo method
Used to change song/audio position from a specific Playlist
Parameters:
requestPermission
is used for request or no Android STORAGE PERMISSIONplaylistId
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.
Important:
- If
requestPermission
is null, will be set tofalse
.
Implementation
Future<bool> moveItemTo(
int playlistId,
int from,
int to, [
bool? requestPermission,
]) async {
final bool resultMoveItem = await _channel.invokeMethod("moveItemTo", {
"requestPermission": _checkPermission(requestPermission),
"playlistId": playlistId,
"from": from,
"to": to
});
return resultMoveItem;
}