sendPasswordResetEmailFor method
Future<bool>
sendPasswordResetEmailFor(
- String email,
- AuthenticationProvider authProvider,
- Future<
bool> sendPasswordResetEmail()
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;
}