copyWith method

TransactionModel copyWith({
  1. String? transactionType,
  2. String? billingRefNo,
  3. String? paymentAmount,
  4. String? mobileNumberForEChargeSlip,
})

copy and create new instance of TransactionModel

Implementation

TransactionModel copyWith({
  String? transactionType,
  String? billingRefNo,
  String? paymentAmount,
  String? mobileNumberForEChargeSlip,
}) {
  return TransactionModel(
    transactionType: transactionType ?? this.transactionType,
    billingRefNo: billingRefNo ?? this.billingRefNo,
    paymentAmount: paymentAmount ?? this.paymentAmount,
    mobileNumberForEChargeSlip:
        mobileNumberForEChargeSlip ?? this.mobileNumberForEChargeSlip,
  );
}