title: Flutter DocumentSnapshot
body: <p>I am trying to get the data from a DocumentSnapshot from firebase.</p>
  
  <pre><code>Firestore.instance.collection('products').document("Lucius_Malfoys_Zauberstab").get().then((DocumentSnapshot ds) {
            print(ds.exists);
          });
  </code></pre>
  
  <p>This method works totally fine and returns true, but: </p>
  
  <pre><code>      var keys =  ["Lucius_Malfoys_Zauberstab"];
  
  
       String id =  keys[0];
       print(id); ---&gt; prints Lucius_Malfoys_Zauberstab
  
  
       Firestore.instance.collection('products').document(id).get().then((DocumentSnapshot ds) {
        print(ds.exists);
        });
  </code></pre>
  
  <p>returns false...</p>
  
  <p>Does anyone have an idea, why this is the case?
  It is just a small problem in my application, but I am curious why this happens. Just for understanding. Thank you!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Here is a screenshot of the cart collection:</p>
  
  <p><a href="https://i.stack.imgur.com/lsxTg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lsxTg.png" alt="enter image description here"></a></p>
  
  <p>Here is a screenshot of the products collection:</p>
  
  <p><a href="https://i.stack.imgur.com/puyzq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/puyzq.png" alt="enter image description here"></a></p>