copyWith method

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

Implementation

@override
MessageInvoice copyWith({
  String? title,
  String? description,
  Photo? photo,
  String? currency,
  int? totalAmount,
  String? startParameter,
  bool? isTest,
  bool? needShippingAddress,
  int? receiptMessageId,
}) => 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,
);