Playlist constructor
const
Playlist(
- PlaylistId id,
- String title,
- String author,
- String description,
- ThumbnailSet thumbnails,
- Engagement engagement,
- int? videoCount,
Initializes an instance of Playlist.
Implementation
const factory Playlist(
/// Playlist ID.
PlaylistId id,
/// Playlist title.
String title,
/// Playlist author.
/// Can be null if it's a system playlist (e.g. Video Mix, Topics, etc.).
String author,
/// Playlist description.
String description,
/// Available thumbnails for this playlist.
/// Can be null if the playlist is empty.
ThumbnailSet thumbnails,
/// Engagement statistics.
Engagement engagement,
/// Total videos in this playlist.
int? videoCount,
) = _Playlist;