recoverPassword method

Future<void> recoverPassword (
  1. String email
)

Implementation

Future<void> recoverPassword(String email) async {
  if (!AuthValidations.isRecoverEmailFilled(email)) {
    AuthException.throwException(
        AuthExceptionErrors.INTERNAL_ERROR_BLANK_EMAIL);
  }

  await _authRepository.recoverPassword(email).catchError((error) {
    AuthException.throwException(error.toString());
  });
}