title: Flutter - Multiple HTTP Requests to the same JSON
body: <p>I have this API where go to fetch data. <br>
  For each &quot;date&quot; I have a JSON Object.<br>
  What I want to do is fetch objects from let's say 5 years and get them on the same final JSON http response.
  So I don't have to display only a day at the time.</p>
  <pre class="lang-dart prettyprint-override"><code>Future&lt;List&lt;Schedule&gt;&gt; getFromEspnSchedule(String sport) async {
    final url = 'http://myserver.com/api/$date'; //the $date would be e.g. 2010, 2011, 2012, ...
    final response = await http.get(url);
  
    if (response.statusCode == 200) {
      List jsonResponse = json.decode(response.body);
      return jsonResponse.map((data) {
        return new Schedule.fromJson(data);
      }).toList();
    } 
  }
  </code></pre>
  <p>What is the best way to implement this?</p>