title: Flutter: Value of List<File> can't be assigned to a variable of type List<Widget>
body: <p>I'm trying to map selected images so that I can display them in the build. </p>
  
  <p>I have: </p>
  
  <pre><code> // declared earlier
  List&lt;File&gt; _images;
  
  List&lt;Widget&gt; image = _images
        if (_images != null) {
        _images.map((c) =&gt; new Image.file(c)
        ).toList();
  </code></pre>
  
  <p>Which is giving me the following error:</p>
  
  <pre><code>'List&lt;File&gt;' can't be assigned to a variable of type 'List&lt;Widget&gt;'.
  </code></pre>
  
  <p>I understand the error, File cannot be assigned to Widget, however I have no idea how to work around it? </p>