title: Flutter-Firebase how to push Future<FirebaseUser> to another class
body: <p>I'm trying to create Authentication forms.
  The user can register with e-mail and password. After eMailandPassword registration is completed successfully, the user is redirected to Verification page. I need user's info so that I can register his phone number to the firebase.
  Here is my createUser function;</p>
  <pre><code>    void createUser() async {
          dynamic result = await _auth.createNewUser(
              _nameController.text, _emailContoller.text, _passwordController.text);
          if (result == null) {
            print('Email is not valid');
          } else {
            print(result.toString());
            _nameController.clear();
            _passwordController.clear();
            _emailContoller.clear();
      
            Future&lt;FirebaseUser&gt; user = _auth.getCurrentUser();
  **/////HOW TO PASS user to the PhoneVerification class. ??**
  
            Navigator.push(
              context,
              MaterialPageRoute(builder: (context) =&gt; PhoneVerification(user:user)),
            );
          }
        }
  </code></pre>
  <p>If I pass as Future user, I cannot access its value in PhoneVerification class.</p>
  <pre><code>class PhoneVerification extends StatefulWidget {
    final Future&lt;FirebaseUser&gt; user;
    const PhoneVerification({Key? key, required this.user}) : super(key: key);
  
    @override
    _PhoneVerificationState createState() =&gt; _PhoneVerificationState();
  }
  </code></pre>
  <p>Any suggestion? Thank you in advance</p>