title: From path to File conversion with Flutter
body: <p>I am working on a flutter project. I need to pick a file from device storage. I can get the path of the document but I need to save it as File or directly get it as File. To create path string I use <strong>flutter_document_picker: 3.0.1</strong>.</p>
  <pre><code> Future getDocument(int index) async {
      var document = await FlutterDocumentPicker.openDocument();
  
      setState(() {
        if (document != null) {
          lstDocument[index] = document;
          Navigator.pop(context);
        }
      });
    }
  </code></pre>
  <p>Is there anyone know how can I save the <em>document</em> as File. Thanks for resolving.</p>