onRecoverNowTap method

Future<void> onRecoverNowTap()

Implementation

Future<void> onRecoverNowTap() async {
  final bool isValid = checkForValidation();
  if (!isValid) return;
  isLoading.value = true;
  if (await authRepository.sendOtp(emailController.text)) {
    await UserManager().saveUser(User(email: emailController.text));
    Get.offAndToNamed(
      ERoutes.VERIFY_OTP,
      arguments: [false, false, emailController.text],
    );
  }
  isLoading.value = false;
}