SearchResult class abstract

Annotations
  • @freezed

Constructors

SearchResult.channel(ChannelId id, String name, String description, int videoCount, List<Thumbnail> thumbnails)
Metadata related to a search query result (channel)
const
factory
SearchResult.playlist(PlaylistId id, String title, int videoCount, List<Thumbnail> thumbnails)
Metadata related to a search query result (playlist)
const
factory
SearchResult.video(VideoId id, String title, String author, String description, String duration, int viewCount, List<Thumbnail> thumbnails, String? uploadDate, bool isLive, String channelId)
Metadata related to a search query result (video).
const
factory

Properties

copyWith → $SearchResultCopyWith<SearchResult>
Create a copy of SearchResult with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id Object
Video ID.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnails List<Thumbnail>
Video thumbnail
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