title: Flutter Convert from QuerySnapshot to a Future <List<Map<dynamic, dynamic>>>
body: <p>How do I return a QuerySnapshot as a Future >>  ?</p>
  
  <p>Code snippet:</p>
  
  <pre><code>Future &lt;List&lt;Map&lt;dynamic, dynamic&gt;&gt;&gt;() {
  List&lt;Map&lt;dynamic,dynamic&gt;&gt; list;
  .....
  
  .....
  QuerySnapshot collectionSnapshot = await collectionRef.getDocuments();
  
  list = collectionSnapshot.documents;  &lt;--- ERROR
  return list;
  
  }
  </code></pre>
  
  <p>I think I need to use a Map of but couldn't get around it to work.</p>