VideoItem class

A video resource represents a YouTube video.

Annotations
  • @JsonSerializable()

Constructors

VideoItem({required String kind, required String etag, required String id, Snippet? snippet, Status? status, ContentDetails? contentDetails, Statistics? statistics, Player? player, LiveStreamingDetails? liveStreamingDetails})
VideoItem.fromJson(Map<String, dynamic> json)
factory

Properties

contentDetails → ContentDetails?
The contentDetails object contains information about the video content, including the length of the video and an indication of whether captions are available for the video.
final
etag String
The Etag of this resource.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The ID that YouTube uses to uniquely identify the video.
final
kind String
Identifies the API resource's type. The value will be youtube#searchListResponse.
finalinherited
liveStreamingDetails → LiveStreamingDetails?
final
player → Player?
The player object contains information that you would use to play the video in an embedded player.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snippet → Snippet?
The snippet object contains basic details about the video, such as its title, description, and category.
final
statistics → Statistics?
The statistics object contains statistics about the video.
final
status → Status?
The status object contains information about the video's uploading, processing, and privacy statuses.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited