copyWith method

  1. @override
MessageInvoice copyWith({
  1. String? title,
  2. FormattedText? description,
  3. Photo? photo,
  4. String? currency,
  5. int? totalAmount,
  6. String? startParameter,
  7. bool? isTest,
  8. bool? needShippingAddress,
  9. int? receiptMessageId,
  10. MessageExtendedMedia? extendedMedia,
})
override

Implementation

@override
MessageInvoice copyWith({
  String? title,
  FormattedText? description,
  Photo? photo,
  String? currency,
  int? totalAmount,
  String? startParameter,
  bool? isTest,
  bool? needShippingAddress,
  int? receiptMessageId,
  MessageExtendedMedia? extendedMedia,
}) =>
    MessageInvoice(
      title: title ?? this.title,
      description: description ?? this.description,
      photo: photo ?? this.photo,
      currency: currency ?? this.currency,
      totalAmount: totalAmount ?? this.totalAmount,
      startParameter: startParameter ?? this.startParameter,
      isTest: isTest ?? this.isTest,
      needShippingAddress: needShippingAddress ?? this.needShippingAddress,
      receiptMessageId: receiptMessageId ?? this.receiptMessageId,
      extendedMedia: extendedMedia ?? this.extendedMedia,
    );