title: trouble retrieving data from firebase in flutter dart application. cannot get a field on a DocumentSnapshotPlatform which does not exist
body: <p>Error im receiving :
  StateError (Bad state: cannot get a field on a DocumentSnapshotPlatform which does not exist)</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Future getUserInterests(userId) async {
      User currentUser = User();
  
      await _firestore.collection('users').doc(userId).get().then((user) {
        currentUser.photo = user.get('name');
        currentUser.photo = user.get('photoUrl');
        currentUser.gender = user.get('gender');
        currentUser.subject = user.get('subject');
        
      });
      return currentUser;
    }</code></pre>
  </div>
  </div>
  </p>
  <p>the name field does exist in my firebase collection thing</p>
  <p>here is an image of my database, ignore how gender says 10th lol</p>
  <p><a href="https://i.stack.imgur.com/d2XtU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d2XtU.png" alt="database" /></a></p>