copyWith method

InlineQueryResultCachedPhoto copyWith({
  1. String? id,
  2. String? photoFileId,
  3. String? title,
  4. String? description,
  5. String? caption,
  6. ParseMode? parseMode,
  7. List<MessageEntity>? captionEntities,
  8. InlineKeyboardMarkup? replyMarkup,
  9. InputMessageContent? inputMessageContent,
  10. bool? showCaptionAboveMedia,
})

Copy method

Implementation

InlineQueryResultCachedPhoto copyWith({
  String? id,
  String? photoFileId,
  String? title,
  String? description,
  String? caption,
  ParseMode? parseMode,
  List<MessageEntity>? captionEntities,
  InlineKeyboardMarkup? replyMarkup,
  InputMessageContent? inputMessageContent,
  bool? showCaptionAboveMedia,
}) {
  return InlineQueryResultCachedPhoto(
    id: id ?? this.id,
    photoFileId: photoFileId ?? this.photoFileId,
    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,
  );
}