copyWith method

InlineQueryResultDocument copyWith({
  1. String? id,
  2. String? title,
  3. String? caption,
  4. ParseMode? parseMode,
  5. List<MessageEntity>? captionEntities,
  6. String? documentUrl,
  7. String? mimeType,
  8. String? description,
  9. InlineKeyboardMarkup? replyMarkup,
  10. InputMessageContent? inputMessageContent,
  11. String? thumbnailUrl,
  12. int? thumbnailWidth,
  13. int? thumbnailHeight,
})

Copy method

Implementation

InlineQueryResultDocument copyWith({
  String? id,
  String? title,
  String? caption,
  ParseMode? parseMode,
  List<MessageEntity>? captionEntities,
  String? documentUrl,
  String? mimeType,
  String? description,
  InlineKeyboardMarkup? replyMarkup,
  InputMessageContent? inputMessageContent,
  String? thumbnailUrl,
  int? thumbnailWidth,
  int? thumbnailHeight,
}) {
  return InlineQueryResultDocument(
    id: id ?? this.id,
    title: title ?? this.title,
    caption: caption ?? this.caption,
    parseMode: parseMode ?? this.parseMode,
    captionEntities: captionEntities ?? this.captionEntities,
    documentUrl: documentUrl ?? this.documentUrl,
    mimeType: mimeType ?? this.mimeType,
    description: description ?? this.description,
    replyMarkup: replyMarkup ?? this.replyMarkup,
    inputMessageContent: inputMessageContent ?? this.inputMessageContent,
    thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl,
    thumbnailWidth: thumbnailWidth ?? this.thumbnailWidth,
    thumbnailHeight: thumbnailHeight ?? this.thumbnailHeight,
  );
}