Video class

YouTube video metadata.

Annotations
  • @freezed

Constructors

Video(VideoId id, String title, String author, ChannelId channelId, DateTime? uploadDate, String? uploadDateRaw, DateTime? publishDate, String description, Duration? duration, ThumbnailSet thumbnails, Iterable<String>? keywords, Engagement engagement, bool isLive, [@internal WatchPage? watchPage])
factory

Properties

author String
Video author.
no setterinherited
channelId ChannelId
Video author Id.
no setterinherited
copyWith → $VideoCopyWith<Video>
no setterinherited
description String
Video description.
no setterinherited
duration Duration?
Duration of the video.
no setterinherited
engagement Engagement
Engagement statistics for this video.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasWatchPage bool
Returns true if the watch page is available for this video.
no setter
id VideoId
Video ID.
no setterinherited
isLive bool
Returns true if this is a live stream.
no setterinherited
keywords UnmodifiableListView<String>
Search keywords used for this video.
no setterinherited
publishDate DateTime?
Video publish date.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnails ThumbnailSet
Available thumbnails for this video.
no setterinherited
title String
Video title.
no setterinherited
uploadDate DateTime?
Video upload date. Note: For search queries it is calculated with: DateTime.now() - how much time is was published.
no setterinherited
uploadDateRaw String?
no setterinherited
url String
Video URL.
no setter
watchPage → WatchPage?
Used internally. Shouldn't be used in the code.
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