title: A value of type can't be returned from method because it has a return type of
body: <pre><code>List&lt;String&gt; getData() async {
      var response = await http.get(url);
  
      if (response.statusCode == 200) {
          String data = response.body;
          print(data);
          var temperature = jsonDecode(data)['main']['temp'];
          var condition = jsonDecode(data)['weather'][0]['id'];
          var city_name = jsonDecode(data)['name'];
  
          return [temperature, condition, city_name];
          } else {
               print(response.statusCode);
          }
     }
  }
  </code></pre>
  
  <p>I get a strange error saying that I can't return <code>List&lt;String&gt;</code> because is expecting <code>List&lt;String&gt;</code> to be returned.</p>