title: the element type 'List<widget>' can't be assigned to the list type 'Widget'
body: <p>I am trying to add data using for loop in gridview but it is showing some error. Here is my code for component</p>
  
  <pre><code>return new GridView.count(
      crossAxisCount: 2,
      padding: const EdgeInsets.all(10.0),
      crossAxisSpacing: 10.0,
      mainAxisSpacing: 10.0,
      children: &lt;Widget&gt;[getList()],
  );
  </code></pre>
  
  <p>getList() code</p>
  
  <pre><code>List&lt;Widget&gt; getList() {
    List&lt;Widget&gt; childs = [];
    for (var i = 0; i &lt; 10; i++) {
      childs.add(new ListItem('abcd ' + $i));
    }
    return childs;
  }
  </code></pre>
  
  <p>But it is showing compile time error.</p>
  
  <pre><code>The element type 'List&lt;widget&gt;' can't be assigned to the list type 'Widget'
  </code></pre>