I have a problem handling firebase_auth errors, every way when I try signIn, I get some errors, although I have used try and catch. Earlier I have turned off the uncaught exceptions option in vsc but I would like to also get the error message from catch
Future<Either<LoginFailure, LoginSucces>> signInWithEmail(
{String email, String password}) async {
try {
await _auth.signInWithEmailAndPassword(email: email, password: password);
} on PlatformException catch (e) {
return Left(LoginFailure(errorMessage: '${e.toString()}'));
}
}
question from:https://stackoverflow.com/questions/65644170/flutter-try-and-catch-dontt-handle-firebase-auth-errors