submitManualVerificationData method
Implementation
void submitManualVerificationData(BuildContext context) async {
try {
setState(() {
loading = true;
});
await Utils.createManualVerificationSession(
CreateManualVerificationSessionPayload(
sessionId: widget.sessionId,
appId: widget.appId,
httpProviderId: widget.providerData.httpProviderId,
parameters: widget.parameters.entries.map((entry) {
return ManualVerificationParameter(
key: entry.key,
value: entry.value,
);
}).toList()));
await Utils.dumpNetworkRequests(widget.sessionId, widget.requestLogs);
Navigator.of(context).pop();
} catch (e) {
setState(() {
loading = false;
});
Fluttertoast.showToast(
msg: e.toString(),
toastLength: Toast.LENGTH_LONG,
gravity: ToastGravity.BOTTOM,
backgroundColor: Colors.white,
textColor: Colors.red,
);
print(e);
}
print(widget.requestLogs.length);
}