copyWith method
PaywayCreateTransaction
copyWith({
- String? tranId,
- String? reqTime,
- double? amount,
- List<
PaywayTransactionItem> ? items, - String? firstname,
- String? lastname,
- String? phone,
- String? email,
- String? returnUrl,
- String? continueSuccessUrl,
- String? returnParams,
- double? shipping,
- ABAPaymentOption? option,
- ABATransactionType? type,
- ABATransactionCurrency? currency,
Implementation
PaywayCreateTransaction copyWith({
String? tranId,
String? reqTime,
double? amount,
List<PaywayTransactionItem>? items,
String? firstname,
String? lastname,
String? phone,
String? email,
String? returnUrl,
String? continueSuccessUrl,
String? returnParams,
double? shipping,
ABAPaymentOption? option,
ABATransactionType? type,
ABATransactionCurrency? currency,
}) {
return PaywayCreateTransaction(
tranId: tranId ?? this.tranId,
reqTime: reqTime ?? this.reqTime,
amount: amount ?? this.amount,
items: items ?? this.items,
firstname: firstname ?? this.firstname,
lastname: lastname ?? this.lastname,
phone: phone ?? this.phone,
email: email ?? this.email,
returnUrl: returnUrl ?? this.returnUrl,
continueSuccessUrl: continueSuccessUrl ?? this.continueSuccessUrl,
returnParams: returnParams ?? this.returnParams,
shipping: shipping ?? this.shipping,
option: option ?? this.option,
type: type ?? this.type,
currency: currency ?? this.currency,
);
}