copyWith method
MessagePaymentSuccessful
copyWith({
- int? invoiceChatId,
- int? invoiceMessageId,
- String? currency,
- int? totalAmount,
- bool? isRecurring,
- bool? isFirstRecurring,
- String? invoiceName,
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
MessagePaymentSuccessful copyWith({
int? invoiceChatId,
int? invoiceMessageId,
String? currency,
int? totalAmount,
bool? isRecurring,
bool? isFirstRecurring,
String? invoiceName,
}) =>
MessagePaymentSuccessful(
invoiceChatId: invoiceChatId ?? this.invoiceChatId,
invoiceMessageId: invoiceMessageId ?? this.invoiceMessageId,
currency: currency ?? this.currency,
totalAmount: totalAmount ?? this.totalAmount,
isRecurring: isRecurring ?? this.isRecurring,
isFirstRecurring: isFirstRecurring ?? this.isFirstRecurring,
invoiceName: invoiceName ?? this.invoiceName,
);