Directory.fromUri constructor

Directory.fromUri(
  1. Uri uri
)

Create a Directory from a URI.

If uri cannot reference a directory this throws UnsupportedError.

Implementation

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