addToPlaylist method Null safety

Future<bool> addToPlaylist(
  1. int playlistId,
  2. int audioId
)

Used to add a specific song/audio to a specific Playlist

Parameters:

  • playlistId is used to check if Playlist exist.
  • audioId is used to add specific audio to Playlist.

Platforms:

AndroidIOSWeb
✔️✔️

See more about platforms support

Implementation

Future<bool> addToPlaylist(int playlistId, int audioId) async {
  return platform.addToPlaylist(playlistId, audioId);
}