title: I can't catch the exception of Firebase Auth on flutter
body: <p>I'm trying to making a signin feature on my app using firebase auth on flutter.</p>
  <p>There are many exceptions I have to deal with but I can't catch them at all.</p>
  <p>Here is my code.</p>
  <pre class="lang-dart prettyprint-override"><code>Future&lt;void&gt; onSubmitted(
      String email, AnimationController controller, BuildContext context) async {
    controller.repeat();
    FirebaseAuth _auth = FirebaseAuth.instance;
    try {
      _auth.signInWithEmailAndPassword(email: email, password: &quot;1&quot;);
    } on PlatformException catch (e) {
      debugPrint(e.toString());
    } on FirebaseAuthException catch (e) {
      debugPrint(e.toString());
    }
  }
  </code></pre>
  <p>This is simplified form for testing. Anyway it doesn't even reach the catch statement. It raises PlatformException before it reaches the catch statement. I don't understand.</p>
  <p>The error code is like this.</p>
  <blockquote>
  <p>Unhandled Exception: [firebase_auth/user-not-found] There is no user record corresponding to this identifier. The user may have been deleted.</p>
  </blockquote>
  <p>I explicitly specified the type of the exception and it's supposed to print the error message but it doesn't even reach <code>debugPrint()</code> function.</p>
  <p>How should I catch the exception?</p>