copyWith method

  1. @override
MessagePaymentRefunded copyWith({
  1. MessageSender? ownerId,
  2. String? currency,
  3. int? totalAmount,
  4. String? invoicePayload,
  5. String? telegramPaymentChargeId,
  6. String? providerPaymentChargeId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
MessagePaymentRefunded copyWith({
  MessageSender? ownerId,
  String? currency,
  int? totalAmount,
  String? invoicePayload,
  String? telegramPaymentChargeId,
  String? providerPaymentChargeId,
}) => MessagePaymentRefunded(
  ownerId: ownerId ?? this.ownerId,
  currency: currency ?? this.currency,
  totalAmount: totalAmount ?? this.totalAmount,
  invoicePayload: invoicePayload ?? this.invoicePayload,
  telegramPaymentChargeId:
      telegramPaymentChargeId ?? this.telegramPaymentChargeId,
  providerPaymentChargeId:
      providerPaymentChargeId ?? this.providerPaymentChargeId,
);