findPlaylistById method
Returns a FindPlaylistResponse
for a playlist with playlistId
Upon success a Playlist
object is provided and error is set to null
In case of error a ResponseError
is set and no Playlist
is provided
Implementation
@override
Future<FindPlaylistResponse> findPlaylistById(String playlistId) {
return catchDioError<FindPlaylistResponse>(
_getPlaylistById(playlistId),
(de) => FindPlaylistResponse(
error: toResponseError(de,
context: contextPlaylist, target: playlistId)));
}