updates on tran flow
This commit is contained in:
@@ -114,4 +114,36 @@ class TransactionController extends ChangeNotifier {
|
||||
model.repeatFormData = data;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
clearFormData() {
|
||||
model.formData = FormData(
|
||||
id: '',
|
||||
type: '',
|
||||
billClientId: '',
|
||||
debitRef: '',
|
||||
debitCurrency: '',
|
||||
amount: '',
|
||||
debitPhone: '',
|
||||
debitAccount: '',
|
||||
creditAccount: '',
|
||||
creditPhone: '',
|
||||
creditName: '',
|
||||
creditEmail: '',
|
||||
billName: '',
|
||||
errorMessage: '',
|
||||
status: 'PENDING',
|
||||
paymentProcessorLabel: '',
|
||||
charge: '',
|
||||
gatewayCharge: '',
|
||||
tax: '',
|
||||
totalAmount: '',
|
||||
paymentProcessorName: '',
|
||||
paymentProcessorImage: '',
|
||||
providerImage: '',
|
||||
userId: '',
|
||||
providerLabel: '',
|
||||
);
|
||||
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user