copyWith method
MessagePaymentRefunded
copyWith({
- MessageSender? ownerId,
- String? currency,
- int? totalAmount,
- String? invoicePayload,
- String? telegramPaymentChargeId,
- 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,
);