title: How to get the current user id from Firebase in Flutter
body: <p>I am trying this - </p>
  
  <pre><code>final Future&lt;FirebaseUser&gt; user = auth.currentUser();
  </code></pre>
  
  <p>but the problem is that instead of making a document by the "userid" it is making a document by the name of - </p>
  
  <pre><code>Instance of 'Future&lt;FirebaseUser&gt;'
  </code></pre>
  
  <p>This is literally my documents name right now, but I want to make it the userid specifically.</p>
  
  <p>What should I do?</p>