title: how to access snapshot.data inside Listview.builder inside futurebuilder
body: <p>I am getting error <code>The method '[]' can't be unconditionally invoked because the receiver can be 'null'.</code></p>
  <p>Mydata inside <code>_categoriesList</code> future</p>
  <pre><code>[
          {
              &quot;business_category_id&quot;: 1,
              &quot;business_category&quot;: &quot;Manufacturer&quot;,
              &quot;business_category_image&quot;: &quot;164423936662011a06c450d.png&quot;
          },
          {
              &quot;business_category_id&quot;: 2,
              &quot;business_category&quot;: &quot;Distributor&quot;,
              &quot;business_category_image&quot;: &quot;164423937762011a11033aa.png&quot;
          },
          {
              &quot;business_category_id&quot;: 3,
              &quot;business_category&quot;: &quot;Wholesaler&quot;,
              &quot;business_category_image&quot;: &quot;164423938762011a1bb2e3c.png&quot;
          },
          {
              &quot;business_category_id&quot;: 4,
              &quot;business_category&quot;: &quot;Retailer&quot;,
              &quot;business_category_image&quot;: &quot;164423940062011a28189e5.png&quot;
          },
          {
              &quot;business_category_id&quot;: 5,
              &quot;business_category&quot;: &quot;Reseller&quot;,
              &quot;business_category_image&quot;: &quot;164423941362011a3554148.png&quot;
          },
          {
              &quot;business_category_id&quot;: 6,
              &quot;business_category&quot;: &quot;Service Provider&quot;,
              &quot;business_category_image&quot;: &quot;164423942462011a4096996.png&quot;
          }
      ]
  </code></pre>
  <p>my code inside futurebuilder. I am having problem accessing <code>snapshot.data[index]</code></p>
  <pre><code>FutureBuilder(
        future: _categoriesList,
        builder: (_, snapshot) {
          if (snapshot.hasData) {
            
            return ListView.builder(
                itemCount: 6,
                itemBuilder: (_, index) {
                  return Text(snapshot.data[index]); // error The method '[]' can't be unconditionally invoked because the receiver can be 'null'
                });
          }
        },
  )  
  </code></pre>