copyWith method
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,
);
}