copyWith method
MessageVideo
copyWith({
- Video? video,
- List<
AlternativeVideo> ? alternativeVideos, - List<
VideoStoryboard> ? storyboards, - Photo? cover,
- int? startTimestamp,
- FormattedText? caption,
- bool? showCaptionAboveMedia,
- bool? hasSpoiler,
- bool? isSecret,
Implementation
MessageVideo copyWith({
Video? video,
List<AlternativeVideo>? alternativeVideos,
List<VideoStoryboard>? storyboards,
Photo? cover,
int? startTimestamp,
FormattedText? caption,
bool? showCaptionAboveMedia,
bool? hasSpoiler,
bool? isSecret,
}) => MessageVideo(
video: video ?? this.video,
alternativeVideos: alternativeVideos ?? this.alternativeVideos,
storyboards: storyboards ?? this.storyboards,
cover: cover ?? this.cover,
startTimestamp: startTimestamp ?? this.startTimestamp,
caption: caption ?? this.caption,
showCaptionAboveMedia: showCaptionAboveMedia ?? this.showCaptionAboveMedia,
hasSpoiler: hasSpoiler ?? this.hasSpoiler,
isSecret: isSecret ?? this.isSecret,
);