First, you shouldn’t return null from FutureBuilder. And to access the data you should use Something like this:

    future: clusters,
    builder: (BuildContext context, AsyncSnapshot<List> snapshot) {
        if (snapshot.hasData) {
            print("clusters: ${", ")}");
            return Text("Hello");
        return SizedBox();

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top