renamePlaylist method

Future<bool> renamePlaylist(
  1. int key,
  2. String newName
)

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 and false if not.

See too:

Implementation

Future<bool> renamePlaylist(int key, String newName) async {
  return await _PlaylistDao().renamePlaylist(key, newName);
}