copyWith method
InlineQueryResultContact
copyWith({
- String? id,
- String? phoneNumber,
- String? firstName,
- String? lastName,
- String? vcard,
- InlineKeyboardMarkup? replyMarkup,
- InputMessageContent? inputMessageContent,
- String? thumbnailUrl,
- int? thumbnailWidth,
- int? thumbnailHeight,
Copy method
Implementation
InlineQueryResultContact copyWith({
String? id,
String? phoneNumber,
String? firstName,
String? lastName,
String? vcard,
InlineKeyboardMarkup? replyMarkup,
InputMessageContent? inputMessageContent,
String? thumbnailUrl,
int? thumbnailWidth,
int? thumbnailHeight,
}) {
return InlineQueryResultContact(
id: id ?? this.id,
phoneNumber: phoneNumber ?? this.phoneNumber,
firstName: firstName ?? this.firstName,
lastName: lastName ?? this.lastName,
vcard: vcard ?? this.vcard,
replyMarkup: replyMarkup ?? this.replyMarkup,
inputMessageContent: inputMessageContent ?? this.inputMessageContent,
thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl,
thumbnailWidth: thumbnailWidth ?? this.thumbnailWidth,
thumbnailHeight: thumbnailHeight ?? this.thumbnailHeight,
);
}