getPlaylistFromId method
- String playlistId
Caches fetched playlists.
Implementation
Future<Playlist> getPlaylistFromId(String playlistId) async {
Playlist? playlist = _playlistCache[playlistId];
if (playlist == null) {
playlist = await _playlistClient.get(playlistId);
_playlistCache[playlistId] ??= playlist;
}
return playlist;
}