copyWith method Null safety
- {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? language,
- String? channelId,
- ChannelMin? channel,
- List<
Video> ? clips, - List<
Video> ? sources, - List<
Video> ? refers, - List<
Video> ? simulcasts, - List<
Channel> ? mentions, - List<
Song> ? songs}
override
Implementation
@override
VideoFull 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? language,
String? channelId,
ChannelMin? channel,
List<Video>? clips,
List<Video>? sources,
List<Video>? refers,
List<Video>? simulcasts,
List<Channel>? mentions,
List<Song>? songs,
}) {
return VideoFull(
id: id ?? this.id,
title: title ?? this.title,
type: type ?? this.type,
topicId: topicId ?? this.topicId,
publishedAt: publishedAt ?? this.publishedAt,
availableAt: availableAt ?? this.availableAt,
duration: duration ?? this.duration,
status: status ?? this.status,
startScheduled: startScheduled ?? this.startScheduled,
startActual: startActual ?? this.startActual,
endActual: endActual ?? this.endActual,
liveViewers: liveViewers ?? this.liveViewers,
description: description ?? this.description,
songcount: songcount ?? this.songcount,
language: language ?? this.language,
channelId: channelId ?? this.channelId,
channel: channel ?? this.channel,
clips: clips ?? this.clips,
sources: sources ?? this.sources,
refers: refers ?? this.refers,
simulcasts: simulcasts ?? this.simulcasts,
mentions: mentions ?? this.mentions,
songs: songs ?? this.songs,
);
}