pathSegments property

  1. @override
List<String> pathSegments
override

The URI path split into its segments.

Each of the segments in the list has been decoded. If the path is empty, the empty list will be returned. A leading slash / does not affect the segments returned.

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

Implementation

@override
List<String> get pathSegments => _uri.pathSegments;