clickOtpButton method

void clickOtpButton()

Implementation

void clickOtpButton() async {
  if (otpController.text.length < 6) {
    showToast(
        "Invalid OTP . Please enter the OTP received on your aadhaar registered mobile number.");
    return;
  }
  Get.focusScope?.unfocus();
  showLoader.value = true;
  await _webController?.evaluateJavascript(
      source:
          "(function() { document.getElementById('submit').disabled =  false; return 'success'; })();");
  _webController?.evaluateJavascript(
      source: "document.getElementById('submit').click();");
  currentStatus = AadhaarStatus.applicationPage;
}