title: A value of type 'Object?' can't be assigned to a variable of type 'List<Space>'
body: <p>A value of type 'Object?' can't be assigned to a variable of type 'List'.</p>
  <p>and error in List data = snapshot.data;</p>
  <pre><code>Padding(
              padding: const EdgeInsets.symmetric(horizontal: 24),
              child: FutureBuilder(
                future: spaceProvider.getRecomendedSpace(),
                builder: (context, snapshot) {
                  if (snapshot.hasData) {
                    List&lt;Space&gt; data = snapshot.data;
                    return Column(
                        children:
                            data.map((item) =&gt; SpaceCard(item)).toList());
                  }
                  return Center(
                    child: CircularProgressIndicator(),
                  );
                },
              ),
            ),
  </code></pre>