checkCaptchaError method
void
checkCaptchaError()
Implementation
void checkCaptchaError() async {
var data = await _webController?.evaluateJavascript(
source:
"(function() { var item = document.getElementById('otp-message'); return item.innerHTML; })();");
if (data is String) {
if (data != "null" && data.isNotEmpty) {
showLoader.value = false;
showToast(data);
stopCaptchaError();
if (data.toLowerCase().contains("success")) {
checkForOtp();
stopCaptchaError();
showSecondOverlay.value = true;
showFirstOverlay.value = false;
} else if (data.toLowerCase().contains("mobile number")) {
_aadhaarSdkController.failureCallback(807);
} else {
captchaController.text = "";
}
}
}
}