recoverPassword method

  1. @override
Future<Response> recoverPassword(
  1. String email
)
override

Sends a new password to the email

Implementation

@override
Future<Response> recoverPassword(String email) {
  if (email.isEmpty) {
    throw Exception('The E-mail must not be empty');
  }
  if (!EmailValidator.validate(email)) {
    throw Exception('E-mail must be valid');
  }
  return _service.recoverPassword(email);
}