PlaylistItem class Null safety

A playlistItem resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist.

YouTube also uses a playlist to identify a channel's list of uploaded videos, with each playlistItem in that list representing one uploaded video.

Annotations

Constructors

PlaylistItem({required String kind, required String etag, required String id, Snippet? snippet, Status? status, ContentDetails? contentDetails})
PlaylistItem.fromJson(Map<String, dynamic> json)
factory

Properties

contentDetails → ContentDetails?
The ContentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video.
final
etag String
The Etag of this resource.
final
hashCode int
The hash code for this object.
read-only, inherited
id String
The ID that YouTube uses to uniquely identify the playlist.
final
kind String
Identifies the API resource's type. The value will be youtube#playlistItem.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
snippet → Snippet?
The Snippet object contains basic details about the playlist item, such as its title and position in the playlist.
final
status → Status?
The Status object contains information about the playlist item's privacy status.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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