File.fromUri constructor

File.fromUri(Uri uri)

Create a File object from a URI.

If uri cannot reference a file this throws UnsupportedError.

Implementation

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