title: A value of type 'XFIle' can't be assigned to a variable of type 'File' error
body: <p>I am using image_picker: ^0.8.4+4 where I am getting this error. what I can do to make this code right?</p>
  <pre><code>late File selectedImage;
  bool _isLoading = false;
  CrudMethods crudMethods = CrudMethods();
  
  Future getImage() async {
  var image = await ImagePicker().pickImage(source: ImageSource.gallery);
  
  setState(() {
    selectedImage = image; //A value of type 'XFIle' can't be assigned to a variable of type 'File' error.
  });
  }
  
  uploadBlog() async {
  // ignore: unnecessary_null_comparison
  if (selectedImage != null) {
    setState(() {
      _isLoading = true;
    });
  </code></pre>