copyWith method

ABATransaction copyWith({
  1. ABAMerchant? merchant,
  2. String? tranID,
  3. String? reqTime,
  4. double? amount,
  5. List<ABATransactionItem>? items,
  6. String? firstname,
  7. String? lastname,
  8. String? phone,
  9. String? email,
  10. String? returnUrl,
  11. String? continueSuccessUrl,
  12. String? returnParams,
  13. double? shipping,
  14. 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,
  );
}