forgotPassword method

Future<bool> forgotPassword(
  1. String email
)

Implementation

Future<bool> forgotPassword(String email) async {
  _setLoading(true);
  _setError(null);
  final result = await _authService.forgotPassword(email);
  return result.fold(
    (_) {
      _setLoading(false);
      return true;
    },
    (error) {
      _setError(error);
      _setLoading(false);
      return false;
    },
  );
}