closedialog method
dynamic
closedialog(
- dynamic context,
- dynamic message
Implementation
closedialog(context, message) {
timer?.cancel();
stage = 0;
start = 5;
checked = false;
Navigator.pop(
context,
CheckoutResponse(
message: message,
name: enrollmentdata,
reference: reference,
status: verificationstatus > 0,
method: checkoutmethod,
verify: verificationstatus == 2,
confidence_level: score,
bvn: checkoutmethod == CheckoutMethod.bvn ? bvnController.text : null,
nin: checkoutmethod == CheckoutMethod.nin ? bvnController.text : null,
),
);
bvnController.clear();
captureimage = "";
bvnimage = "";
}