artistSongs method
Future<List?>
artistSongs({
- required int artistId,
- required int perPage,
- required int page,
- 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'];
}