copyWith method
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,
);
}