W3cubDocs

/Dart 2

Uri.directory constructor

Uri.directory(String path, { bool windows })

Like Uri.file except that a non-empty URI path ends in a slash.

If path is not empty, and it doesn't end in a directory separator, then a slash is added to the returned URI's path. In all other cases, the result is the same as returned by Uri.file.

Implementation

factory Uri.directory(String path, {bool windows}) = _Uri.directory;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-core/Uri/Uri.directory.html