title: Why is snapshot.data.length deprecated?
body: <p>I am using firebase_auth 3.0.1, firebase_core 1.4.0, cloud_firestore 2.4.0.
  When I try to get data from firestore data.length and data[index].get(&quot;name&quot;) keeps on getting deprecated. Please help.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Future getMenus() async{
      var firestore = FirebaseFirestore.instance;
      QuerySnapshot qn = await firestore.collection("products").get();
  
      return qn.docs;
    }
  
    @override
    Widget build(BuildContext context) {
      return FutureBuilder&lt;List&lt;DocumentSnapshot&gt;&gt;(
        future: getMenus(),
        builder: (context, snapshot) {
          if(snapshot.hasData){
            print("ye");
            return ListView.builder(
              itemCount: snapshot.data.length,
              itemBuilder: (_, index){
                return ListTile(
                  title: Text(snapshot.data[index].data["name"])
                );
              }
            );
              // CustomText(text: "data", size: 20, colors: black, weight: FontWeight.bold);
  
          }
          else if(snapshot.connectionState == ConnectionState.waiting){
            return Center(
              child: Text("Loading...")
            );
          }
          else{
            print("no");
            return CustomText(text: "No", size: 20, colors: black, weight: FontWeight.bold);
  
          }
        },
      );
    }</code></pre>
  </div>
  </div>
  </p>