copyWith method

InlineQueryResultContact copyWith({
  1. String? id,
  2. String? phoneNumber,
  3. String? firstName,
  4. String? lastName,
  5. String? vcard,
  6. InlineKeyboardMarkup? replyMarkup,
  7. InputMessageContent? inputMessageContent,
  8. String? thumbnailUrl,
  9. int? thumbnailWidth,
  10. 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,
  );
}