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