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.

Constructors

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

Properties

hashCode int
The hash code for this object.
read-onlyinherited
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-onlyinherited
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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