copyWith method
InlineQueryResultCachedVoice
copyWith({
- String? id,
- String? voiceFileId,
- String? title,
- ParseMode? parseMode,
- InlineKeyboardMarkup? replyMarkup,
- InputMessageContent? inputMessageContent,
Copy method
Implementation
InlineQueryResultCachedVoice copyWith({
String? id,
String? voiceFileId,
String? title,
String? caption,
ParseMode? parseMode,
List<MessageEntity>? captionEntities,
InlineKeyboardMarkup? replyMarkup,
InputMessageContent? inputMessageContent,
}) {
return InlineQueryResultCachedVoice(
id: id ?? this.id,
voiceFileId: voiceFileId ?? this.voiceFileId,
title: title ?? this.title,
caption: caption ?? this.caption,
parseMode: parseMode ?? this.parseMode,
captionEntities: captionEntities ?? this.captionEntities,
replyMarkup: replyMarkup ?? this.replyMarkup,
inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);
}