copyWith method

InlineQueryResultPhoto copyWith({
  1. String? id,
  2. String? photoUrl,
  3. String? thumbnailUrl,
  4. int? photoWidth,
  5. int? photoHeight,
  6. String? title,
  7. String? description,
  8. String? caption,
  9. ParseMode? parseMode,
  10. List<MessageEntity>? captionEntities,
  11. InlineKeyboardMarkup? replyMarkup,
  12. InputMessageContent? inputMessageContent,
  13. bool? showCaptionAboveMedia,
})

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