Directory.fromUri constructor

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