copyWith method

PaymentReceipt copyWith({
  1. String? title,
  2. FormattedText? description,
  3. Photo? photo,
  4. int? date,
  5. int? sellerBotUserId,
  6. int? paymentProviderUserId,
  7. Invoice? invoice,
  8. OrderInfo? orderInfo,
  9. ShippingOption? shippingOption,
  10. String? credentialsTitle,
  11. int? tipAmount,
  12. dynamic extra,
  13. int? clientId,
})

Implementation

PaymentReceipt copyWith({
  String? title,
  FormattedText? description,
  Photo? photo,
  int? date,
  int? sellerBotUserId,
  int? paymentProviderUserId,
  Invoice? invoice,
  OrderInfo? orderInfo,
  ShippingOption? shippingOption,
  String? credentialsTitle,
  int? tipAmount,
  dynamic extra,
  int? clientId,
}) =>
    PaymentReceipt(
      title: title ?? this.title,
      description: description ?? this.description,
      photo: photo ?? this.photo,
      date: date ?? this.date,
      sellerBotUserId: sellerBotUserId ?? this.sellerBotUserId,
      paymentProviderUserId:
          paymentProviderUserId ?? this.paymentProviderUserId,
      invoice: invoice ?? this.invoice,
      orderInfo: orderInfo ?? this.orderInfo,
      shippingOption: shippingOption ?? this.shippingOption,
      credentialsTitle: credentialsTitle ?? this.credentialsTitle,
      tipAmount: tipAmount ?? this.tipAmount,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );