artistSongs method

Future<List?> artistSongs({
  1. required int artistId,
  2. required int perPage,
  3. required int page,
  4. SongsSorting sort = SongsSorting.title,
})

Gets artist's songs.

per_page specifies of results to return per request. It can't be more than 50.

Implementation

Future<List<dynamic>?> artistSongs(
    {required int artistId,
    required int perPage,
    required int page,
    SongsSorting sort = SongsSorting.title}) async {
  return (await _artistSongsPage(
      artistId: artistId, perPage: perPage, page: page))?['songs'];
}