copyWith method
Copy method
Implementation
InlineQueryResultPhoto copyWith({
String? id,
String? photoUrl,
String? thumbnailUrl,
int? photoWidth,
int? photoHeight,
String? title,
String? description,
String? caption,
ParseMode? parseMode,
List<MessageEntity>? captionEntities,
InlineKeyboardMarkup? replyMarkup,
InputMessageContent? inputMessageContent,
bool? showCaptionAboveMedia,
}) {
return InlineQueryResultPhoto(
id: id ?? this.id,
photoUrl: photoUrl ?? this.photoUrl,
thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl,
photoWidth: photoWidth ?? this.photoWidth,
photoHeight: photoHeight ?? this.photoHeight,
title: title ?? this.title,
description: description ?? this.description,
caption: caption ?? this.caption,
parseMode: parseMode ?? this.parseMode,
captionEntities: captionEntities ?? this.captionEntities,
replyMarkup: replyMarkup ?? this.replyMarkup,
inputMessageContent: inputMessageContent ?? this.inputMessageContent,
showCaptionAboveMedia:
showCaptionAboveMedia ?? this.showCaptionAboveMedia,
);
}