RequestPath class Null safety

Stores path info for a Request.

Contains the raw path string, the path as segments and values created by routing a request.

Note: The properties variables, orderedVariableNames and remainingPath are not set until after the owning request has passed through a Router.


RequestPath(List<String> segments)
Default constructor for RequestPath. [...]


hashCode int
The hash code for this object. [...]
read-only, inherited
orderedVariableNames List<String?>
An ordered list of variable names (the keys in variables) based on their position in the path. [...]
read / write
remainingPath String?
If a match specification uses the 'match all' token (*), the part of the path matched by that token will be stored in this property. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
segments List<String>
A list of the segments in a matched path. [...]
string String
The path of the requested URI. [...]
variables Map<String?, String>
A Map of path variables. [...]
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
setSpecification(RouteSpecification spec, {int segmentOffset = 0}) → void
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]