renamePlaylist method
Used to rename a internal playlist.
Parameters:
key
this is the key of the playlist that will be renamed.newName
this is the new name of the playlist.
Return:
- Will return
true
if the playlist has renamed andfalse
if not.
See too:
Implementation
Future<bool> renamePlaylist(int key, String newName) async {
return await _PlaylistDao().renamePlaylist(key, newName);
}