list method

Future<PlaylistItemListResponse> list({
  1. String part = 'contentDetails,id,localizations,player,snippet,status',
  2. List<String> partList = const [],
  3. String? playlistId,
  4. String? id,
  5. int? maxResults,
  6. String? onBehalfOfContentOwner,
  7. String? videoId,
  8. String? pageToken,
})

Returns a collection of playlists that match the API request parameters. For example, you can retrieve all playlists that the authenticated user owns, or you can retrieve one or more playlists by their unique IDs.

Implementation

Future<PlaylistItemListResponse> list(
    {String part = 'contentDetails,id,localizations,player,snippet,status',
    List<String> partList = const [],
    String? playlistId,
    String? id,
    int? maxResults,
    String? onBehalfOfContentOwner,
    String? videoId,
    String? pageToken}) async {
  return _rest.list(
    apiKey,
    accept,
    buildParts(partList, part),
    playlistId: playlistId,
    id: id,
    maxResults: maxResults,
    onBehalfOfContentOwner: onBehalfOfContentOwner,
    pageToken: pageToken,
    videoId: videoId,
  );
}