createPlaylist method

Future<bool> createPlaylist(
  1. String name, {
  2. String? author,
  3. String? desc,
})

Used to create a Playlist

Parameters:

  • name the playlist name.
  • author the playlist author. (IOS only)
  • desc the playlist description. (IOS only)

Important:

  • This method create a playlist using External Storage, all apps will be able to see this playlist

Platforms:

Android IOS Web
✔️ ✔️

See more about platforms support

Implementation

Future<bool> createPlaylist(
  String name, {
  String? author,
  String? desc,
}) async {
  return platform.createPlaylist(
    name,
    author: author,
    desc: desc,
  );
}