Playlist class
YouTube playlist metadata.
- Annotations
-
- @freezed
Constructors
- Playlist(PlaylistId id, String title, String author, String description, ThumbnailSet thumbnails, Engagement engagement, int? videoCount)
-
Initializes an instance of Playlist.
constfactory
Properties
-
Playlist author.
Can be null if it's a system playlist (e.g. Video Mix, Topics, etc.).
no setterinherited
-
copyWith
→ $PlaylistCopyWith<
Playlist> -
no setterinherited
- description → String
-
Playlist description.
no setterinherited
- engagement → Engagement
-
Engagement statistics.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → PlaylistId
-
Playlist ID.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbnails → ThumbnailSet
-
Available thumbnails for this playlist.
Can be null if the playlist is empty.
no setterinherited
- title → String
-
Playlist title.
no setterinherited
- url → String
-
Playlist URL.
no setter
- videoCount → int?
-
Total videos in this playlist.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited