RequestPath class

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.

Constructors

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

Properties

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
segments → List<String>
A list of the segments in a matched path. [...]
final
string → String
The path of the requested URI. [...]
read-only
variables ↔ Map<String, String>
A Map of path variables. [...]
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited