copyWith method Null safety
- {String? total,
- bool? paginated,
- List<
VideoWithComments> ? videos}
Implementation
VideoWithCommentsList copyWith({
String? total,
bool? paginated,
List<VideoWithComments>? videos,
}) {
return VideoWithCommentsList(
total: total ?? this.total,
paginated: paginated ?? this.paginated,
videos: videos ?? this.videos,
);
}