copyWith method
ABATransaction
copyWith({
- ABAMerchant? merchant,
- String? tranID,
- String? reqTime,
- double? amount,
- List<
ABATransactionItem> ? items, - String? firstname,
- String? lastname,
- String? phone,
- String? email,
- String? returnUrl,
- String? continueSuccessUrl,
- String? returnParams,
- double? shipping,
- ABAPaymentOption? option,
Implementation
ABATransaction copyWith({
ABAMerchant? merchant,
String? tranID,
String? reqTime,
double? amount,
List<ABATransactionItem>? items,
String? firstname,
String? lastname,
String? phone,
String? email,
String? returnUrl,
String? continueSuccessUrl,
String? returnParams,
double? shipping,
ABAPaymentOption? option,
}) {
return ABATransaction(
merchant: merchant ?? this.merchant,
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,
);
}