title: Flutter image_picker "'PickedFile'" can't be assigned to the parameter type 'File'
body: <p>I'm calling a widget in my code to display the selected image through image-picker plugin; following is my code:</p>
  <pre><code>Widget _imagePlaceHolder() {
  if (imageSelected == null){
    return Text(&quot;No File Selected!!&quot;);
  } else {
    Image.file(imageSelected, width: 400, height: 400);
  }
  </code></pre>
  <p>}</p>
  <p>but I'm getting this error:</p>
  <p>The argument type &quot;'PickedFile'&quot; can't be assigned to the parameter type 'File'</p>
  <p>on imageSelected under else statement.</p>
  <p>I'm picking an image like this from gallery:</p>
  <pre><code>Future _openGallery(BuildContext context) async {
  var picture = await picker.getImage(source: ImageSource.gallery);
  this.setState(() {
    imageSelected = picture;
  });}
  </code></pre>
  <p>I've defined:
  PickedFile imageSelected;
  final picker = ImagePicker();</p>
  <p>what's going wrong here? Please help..</p>