title: Flutter image picker not providing the image path
body: <p>I am trying to get a image using camera in flutter using image picker but i am getting an error</p>
  <pre><code>          lib/Screen/AllDocuments.dart:15:3: Error: 'File' isn't a type.
            File _image;
  </code></pre>
  <p>I have also tried to cast but still it is not working</p>
  <pre><code>       File _image;
     final picker = ImagePicker();
  
  Future getImage() async {
  final pickedFile = await picker.getImage(source: ImageSource.camera);
  
  setState(() {
      _image = File(pickedFile);
    });
  }
  </code></pre>
  <p>How to fix this error</p>