title: Class 'List<_JsonQueryDocumentSnapshot>' has no instance getter 'docs'
body: <p>I'm getting this error when I click on the button in firebase data is getting store but its not displaying the data. Please let me know where I, doing wrong or what changes I need to make to the code so solve the error.... I'm learning the Flutter myself and I don't know what to do next.</p>
  <pre class="lang-dart prettyprint-override"><code>    Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      SizedBox(
                        height: 15,
                      ),
                      Center(
                        child: Text(
                          &quot;Trip&quot;,
                          textAlign: TextAlign.center,
                          style: const TextStyle(
                              fontWeight: FontWeight.bold,
                              fontSize: 15,
                              color: Colors.black),
                        ),
                      ),
                      SizedBox(
                        height: 20,
                      ),
                      FutureBuilder(
                          future: getPosts(),
                          builder: (context, AsyncSnapshot&lt;dynamic&gt; snapshot) {
                            var indexLength = snapshot.data.length;
                            if (snapshot.hasData) {
                              return Container(
                                  height: 200,
                                  child: snapshot.data.docs.map((document) {
                                    int _index;
                                    PageView.builder(
                                        itemCount: indexLength,
                                        onPageChanged: (int index) =&gt;
                                            setState(() =&gt; _index = index),
                                        itemBuilder: (_, i) {
                                          return ListTile(
                                              title: Text(snapshot.data.docs[i]
                                                  .data()['tripname'])
                                              //napshot.data[index][&quot;tripname&quot;]),
                                              );
                                        });
                                  }));
                            } else {
                              return Center(child: Text(&quot;Loading&quot;));
                            }
                          }),
                    ],
                  )
  </code></pre>
  <p>[<img src="https://i.stack.imgur.com/KW5Pu.png" alt="Screenshot1" /></p>