W3cubDocs

/Dart 2

pathSegments property

List<String> pathSegments

Returns the URI path split into its segments. Each of the segments in the returned list have been decoded. If the path is empty the empty list will be returned. A leading slash / does not affect the segments returned.

The returned list is unmodifiable and will throw UnsupportedError on any calls that would mutate it.

Implementation

List<String> get pathSegments;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-core/Uri/pathSegments.html