copyWith method

  1. @override
InputMessageVideo copyWith({
  1. InputFile? video,
  2. InputThumbnail? thumbnail,
  3. List<int>? addedStickerFileIds,
  4. int? duration,
  5. int? width,
  6. int? height,
  7. bool? supportsStreaming,
  8. FormattedText? caption,
  9. int? selfDestructTime,
  10. bool? hasSpoiler,
})
override

Implementation

@override
InputMessageVideo copyWith({
  InputFile? video,
  InputThumbnail? thumbnail,
  List<int>? addedStickerFileIds,
  int? duration,
  int? width,
  int? height,
  bool? supportsStreaming,
  FormattedText? caption,
  int? selfDestructTime,
  bool? hasSpoiler,
}) =>
    InputMessageVideo(
      video: video ?? this.video,
      thumbnail: thumbnail ?? this.thumbnail,
      addedStickerFileIds: addedStickerFileIds ?? this.addedStickerFileIds,
      duration: duration ?? this.duration,
      width: width ?? this.width,
      height: height ?? this.height,
      supportsStreaming: supportsStreaming ?? this.supportsStreaming,
      caption: caption ?? this.caption,
      selfDestructTime: selfDestructTime ?? this.selfDestructTime,
      hasSpoiler: hasSpoiler ?? this.hasSpoiler,
    );