onSignInTap method
Implementation
Future<void> onSignInTap() async {
Utils().clearKeyboardFocus();
final bool isValid = checkForError();
if (!isValid) return;
isLoading.value = true;
if (await authRepository.signUp(SignUpRequest(
fullName: firstnameController.text,
phone: "${phone.value!.dialCode}${phoneController.text}",
email: emailController.text,
password: passwordController.text,
))) {
Get.toNamed(
ERoutes.VERIFY_OTP,
arguments: [true, false, emailController.text],
);
clearFields();
}
isLoading.value = false;
}