VideoWithComments class Null safety

Inheritance

Constructors

VideoWithComments({required String id, required String title, required VideoType type, String? topicId, String? publishedAt, required String availableAt, int? duration, required VideoStatus status, String? startScheduled, String? startActual, String? endActual, int? liveViewers, String? description, String? channelId, int? songcount, String? language, required List<Comment> comments, ChannelMin? channel})
VideoWithComments.fromJson(String source)
factory
VideoWithComments.fromMap(Map<String, dynamic> map)
factory

Properties

availableAt String
Takes on the first non-null value of end_actual, start_actual, start_scheduled, or published_at
final, inherited
channel ChannelMin?
final, inherited
channelId String?
final, inherited
comments List<Comment>
final
description String?
Included when includes contains 'description'
final, inherited
duration int?
Duration of the video in seconds
final, inherited
endActual String?
Included when includes contains 'live_info'
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
final, inherited
language String?
final, inherited
liveViewers int?
Included when includes contains 'live_info'
final, inherited
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
read-only, override
publishedAt String?
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
songcount int?
Number of tagged songs for this video
final, inherited
startActual String?
Included when includes contains 'live_info'
final, inherited
startScheduled String?
Included when includes contains 'live_info'
final, inherited
status VideoStatus
final, inherited
stringify bool
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, override
title String
final, inherited
topicId String?
corresponds to a Topic ID, Videos of type clip cannot not have topic. Streams may or may not have topic.
final, inherited
type VideoType
final, inherited

Methods

copyWith({String? id, String? title, VideoType? type, String? topicId, String? publishedAt, String? availableAt, int? duration, VideoStatus? status, String? startScheduled, String? startActual, String? endActual, int? liveViewers, String? description, int? songcount, String? channelId, ChannelMin? channel, String? language, List<Comment>? comments}) VideoWithComments
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() String
override
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object. [...]
inherited

Operators

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