title: In flutter how to get current user logged in from the cache maintained by firebase for signin type of email and password
body: <p>I am able to signin with user in my authentication, but how to get current user aid in dart flutter.</p>
  
  <p>I am trying in this way</p>
  
  <pre><code>FirebaseUser user = FirebaseAuth.instance.currentUser;
  print(user.uid);
  </code></pre>
  
  <p>but showing error as </p>
  
  <blockquote>
    <p>A value of type'()-> Future can't be assigned to a variable of type firebaseuser"</p>
  </blockquote>