copyWith method

MessageVideo copyWith({
  1. Video? video,
  2. List<AlternativeVideo>? alternativeVideos,
  3. List<VideoStoryboard>? storyboards,
  4. Photo? cover,
  5. int? startTimestamp,
  6. FormattedText? caption,
  7. bool? showCaptionAboveMedia,
  8. bool? hasSpoiler,
  9. 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,
);