copyWith method
InlineQueryResultCachedDocument
copyWith({
- String? id,
- String? documentFileId,
- String? title,
- String? description,
- ParseMode? parseMode,
- InlineKeyboardMarkup? replyMarkup,
- InputMessageContent? inputMessageContent,
Copy method
Implementation
InlineQueryResultCachedDocument copyWith({
String? id,
String? documentFileId,
String? title,
String? description,
String? caption,
ParseMode? parseMode,
List<MessageEntity>? captionEntities,
InlineKeyboardMarkup? replyMarkup,
InputMessageContent? inputMessageContent,
}) {
return InlineQueryResultCachedDocument(
id: id ?? this.id,
documentFileId: documentFileId ?? this.documentFileId,
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,
);
}