resetPassword method

Future<void> resetPassword(
  1. String email
)

Implementation

Future<void> resetPassword(String email) async {
  _isLoading = true;
  _error = null;
  notifyListeners();

  try {
    await _authService.resetPassword(email);
    _isLoading = false;
    notifyListeners();
  } catch (e) {
    _error = e.toString();
    _isLoading = false;
    notifyListeners();
  }
}