sendPasswordResetEmailFor method

Future<bool> sendPasswordResetEmailFor(
  1. String email,
  2. AuthenticationProvider authProvider,
  3. Future<bool> sendPasswordResetEmail(
    1. String,
    2. AuthenticationProvider
    )
)

sends a password reset email to the provided email

Implementation

Future<bool> sendPasswordResetEmailFor(String email, AuthenticationProvider authProvider, Future<bool> Function(String, AuthenticationProvider) sendPasswordResetEmail) async {
  isLoading = true;
  authExceptionType = null;
  notifyListeners();
  notifyListeners();
  final result =  await sendPasswordResetEmail(email, authProvider);
  isLoading = false;
  notifyListeners();
  return result;
}