title: I can't display the firebase auth exceptions in my flutter app
body: <p>Everything works fine,i can smoothly create a user but i'm stuck on displaying the signup exceptions on my app.</p>
  <p>Please check what is missing  my code</p>
  <pre><code>    class MyEmail extends StatefulWidget {
       @override
       State&lt;MyEmail&gt; createState() =&gt; _MyEmailState(nameController);
      }
  
     class _MyEmailState extends State&lt;MyEmail&gt; {
     String errorMessage = '';
     ...
  
      @override
     Widget build(BuildContext context) {
     return GestureDetector(
      ..
            Form(
                key: _regFormKey,   
                  Container(
                    margin: EdgeInsets.all(20),
                    child: TextFormField(
                      controller: _emailController,
                      focusNode: _focusEmail,
                      validator: (value) =&gt; Validator.validateEmail(
                        email: value,
                      ),
                      decoration: InputDecoration(
                        hintText: &quot;Email&quot;,
                    ),
                  ),
                  ), // end of form
                     Center(
                    child: Text(
                   errorMessage,
                  style: TextStyle(color: Colors.red),
                 ),
                 ),
  
             ...
        }
  
           
  </code></pre>
  <p>Here is my button</p>
  <pre><code>RaisedButton(
                onPressed: () async {
                  if (_regFormKey.currentState!.validate()) {
                    setState(() {
                      _isProcessing = true;
                    });
  
                    try {
                      User? user = await FireAuth.registerUsingEmailPassword(
                        name: nameController,
                        email: _emailController.text,
                        password: _passwordController.text,
                      );
                      setState(() {
                        _isProcessing = false;
                      });
                      errorMessage = '';
  
                      if (user != null) {
                        Navigator.of(context).pushAndRemoveUntil(
                          MaterialPageRoute(
                            builder: (context) =&gt; ProfilePage(user: user),
                          ),
                          ModalRoute.withName('/'),
                        );
                      }
                    } on FirebaseAuthException catch (error) {
                      errorMessage = error.message!;
                    }
                   
                  }
                },
               
                child: const Text(
                  'Continue',
                  style: TextStyle(color: Colors.white, fontSize: 20),
                ),
              ),          
  </code></pre>
  <p>I'm using the string errorMessage to carry the auth exceptions that are later supposed to be displayed before the continue button.
  The exceptions are shown on my IDE output but the problem is displaying them on the app</p>
  <p>Everything else on creating the user works just fine .</p>