copyWith method

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

Copy method

Implementation

InlineQueryResultCachedGif copyWith({
  String? id,
  String? gifFileId,
  String? title,
  String? caption,
  ParseMode? parseMode,
  List<MessageEntity>? captionEntities,
  InlineKeyboardMarkup? replyMarkup,
  InputMessageContent? inputMessageContent,
  bool? showCaptionAboveMedia,
}) {
  return InlineQueryResultCachedGif(
    id: id ?? this.id,
    gifFileId: gifFileId ?? this.gifFileId,
    title: title ?? this.title,
    caption: caption ?? this.caption,
    parseMode: parseMode ?? this.parseMode,
    captionEntities: captionEntities ?? this.captionEntities,
    replyMarkup: replyMarkup ?? this.replyMarkup,
    inputMessageContent: inputMessageContent ?? this.inputMessageContent,
    showCaptionAboveMedia:
        showCaptionAboveMedia ?? this.showCaptionAboveMedia,
  );
}