title: Is there any way to iterate over future<list> in flutter
body: <p>I would like to iterate over the the <code>Future&lt;list&gt;</code> but get errors if I try using for loops or if I try setting it as <code>List</code>.</p>
  <p>Is there any other way of looping over each element in the list:</p>
  <pre><code>Future&lt;List&gt; getDailyTask(DateTime date) async {
    var params = {'date': date.toIso8601String()};
    Uri uri = Uri.parse('URL');
    final newURI = uri.replace(queryParameters: params);
    http.Response response = await http.get(
      newURI,
      headers: {&quot;Accept&quot;: &quot;application/json&quot;},
    );
  
    List foo = json.decode(response.body);
    return foo;
  }
  </code></pre>