sendPasswordResetEmail method

Future<void> sendPasswordResetEmail (
  1. String email
)

Implementation

Future<void> sendPasswordResetEmail(String email) async {
  try {
    resetEmailState = ResetEmailState.SENDING;
    notifyListeners();
    await sendPasswordResetEmailHandler(email);
    resetEmailState = ResetEmailState.SENT;
    notifyListeners();
  } catch (err) {
    print(err.toString());
    resetEmailState = ResetEmailState.ERROR;
    notifyListeners();
  }
}