copyWith method Null safety
- {String? id,
- String? name,
- String? englishName,
- ChannelType? type,
- Organization? org,
- String? suborg,
- String? photo,
- String? banner,
- String? twitter,
- String? videoCount,
- String? subscriberCount,
- String? viewCount,
- int? clipCount,
- Language? lang,
- String? publishedAt,
- bool? inactive,
- String? description}
override
Implementation
@override
Channel copyWith({
String? id,
String? name,
String? englishName,
ChannelType? type,
Organization? org,
String? suborg,
String? photo,
String? banner,
String? twitter,
String? videoCount,
String? subscriberCount,
String? viewCount,
int? clipCount,
Language? lang,
String? publishedAt,
bool? inactive,
String? description,
}) {
return Channel(
id: id ?? this.id,
name: name ?? this.name,
englishName: englishName ?? this.englishName,
type: type ?? this.type,
org: org ?? this.org,
suborg: suborg ?? this.suborg,
photo: photo ?? this.photo,
banner: banner ?? this.banner,
twitter: twitter ?? this.twitter,
videoCount: videoCount ?? this.videoCount,
subscriberCount: subscriberCount ?? this.subscriberCount,
viewCount: viewCount ?? this.viewCount,
clipCount: clipCount ?? this.clipCount,
lang: lang ?? this.lang,
publishedAt: publishedAt ?? this.publishedAt,
inactive: inactive ?? this.inactive,
description: description ?? this.description,
);
}