copyWith method

InlineQueryResultVideo copyWith({
  1. String? id,
  2. String? videoUrl,
  3. String? mimeType,
  4. String? thumbnailUrl,
  5. String? title,
  6. String? caption,
  7. ParseMode? parseMode,
  8. List<MessageEntity>? captionEntities,
  9. int? videoWidth,
  10. int? videoHeight,
  11. int? videoDuration,
  12. String? description,
  13. InlineKeyboardMarkup? replyMarkup,
  14. InputMessageContent? inputMessageContent,
  15. bool? showCaptionAboveMedia,
})

Copy method

Implementation

InlineQueryResultVideo copyWith({
  String? id,
  String? videoUrl,
  String? mimeType,
  String? thumbnailUrl,
  String? title,
  String? caption,
  ParseMode? parseMode,
  List<MessageEntity>? captionEntities,
  int? videoWidth,
  int? videoHeight,
  int? videoDuration,
  String? description,
  InlineKeyboardMarkup? replyMarkup,
  InputMessageContent? inputMessageContent,
  bool? showCaptionAboveMedia,
}) {
  return InlineQueryResultVideo(
    id: id ?? this.id,
    videoUrl: videoUrl ?? this.videoUrl,
    mimeType: mimeType ?? this.mimeType,
    thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl,
    title: title ?? this.title,
    caption: caption ?? this.caption,
    parseMode: parseMode ?? this.parseMode,
    captionEntities: captionEntities ?? this.captionEntities,
    videoWidth: videoWidth ?? this.videoWidth,
    videoHeight: videoHeight ?? this.videoHeight,
    videoDuration: videoDuration ?? this.videoDuration,
    description: description ?? this.description,
    replyMarkup: replyMarkup ?? this.replyMarkup,
    inputMessageContent: inputMessageContent ?? this.inputMessageContent,
    showCaptionAboveMedia:
        showCaptionAboveMedia ?? this.showCaptionAboveMedia,
  );
}