SearchResult.playlist constructor

const SearchResult.playlist(
  1. PlaylistId id,
  2. String title,
  3. int videoCount,
  4. List<Thumbnail> thumbnails,
)

Metadata related to a search query result (playlist)

Implementation

const factory SearchResult.playlist(
  /// PlaylistId.
  PlaylistId id,

  /// Playlist title.
  String title,

  /// Playlist video count, cannot be greater than 50.
  int videoCount,

  /// Video thumbnail
  List<Thumbnail> thumbnails,
) = SearchPlaylist;