Playlist constructor

const Playlist(
  1. PlaylistId id,
  2. String title,
  3. String author,
  4. String description,
  5. ThumbnailSet thumbnails,
  6. Engagement engagement,
  7. 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;