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
- hashCode → int
-
The hash code for this object.
no setterinherited
-
orderedVariableNames
↔ List<
String> -
An ordered list of variable names (the keys in variables) based on their position in the path.
getter/setter pair
- 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.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segments
→ List<
String> -
A list of the segments in a matched path.
final
- string → String
-
The path of the requested URI.
no setter
-
variables
↔ Map<
String, String> -
A Map of path variables.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setSpecification(
RouteSpecification spec, {int segmentOffset = 0}) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited