RouteMatch class

A matched route: the pattern that matched, the concrete path, and any extracted path params (e.g. /nodes/:id against /nodes/web-01 yields {id: web-01}).

Kept free of package:web so the matching logic is unit-testable on the VM.

Constructors

RouteMatch(String pattern, String path, [Map<String, String> params = const {}])
Creates a route match.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
matched bool
Whether any registered pattern matched.
no setter
params Map<String, String>
Path parameters extracted from the pattern.
final
path String
The concrete path that was matched.
final
pattern String
The registered pattern that matched (or '' for no-match).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited