get method

Future<Playlist> get(
  1. dynamic id
)

Gets the metadata associated with the specified playlist.

Implementation

Future<Playlist> get(dynamic id) async {
  id = PlaylistId.fromString(id);

  final response =
      await PlaylistPage.get(_httpClient, (id as PlaylistId).value);
  return Playlist(
    id,
    response.title ?? '',
    response.author ?? '',
    response.description ?? '',
    ThumbnailSet(id.value),
    Engagement(response.viewCount ?? 0, null, null),
    response.videoCount,
  );
}