File.fromUri constructor

File.fromUri(
  1. 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());