Directory.fromUri(Uri uri)

Create a Directory object from a URI.

If uri cannot reference a directory this throws UnsupportedError.

Source

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