File.fromUri(Uri uri)

Create a File object from a URI.

If uri cannot reference a file this throws UnsupportedError.

Source

factory File.fromUri(Uri uri) => new File(uri.toFilePath());