Directory.fromUri constructor

Directory.fromUri(Uri uri)

Create a Directory object from a URI.

If uri cannot reference a directory this throws UnsupportedError.

Implementation

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