MatchResult class

A class representing the result of a route matching operation.

Constructors

MatchResult(RouteNode node, Map<String, String> parameters, String currentPath, {Map<String, String> urlParameters = const {}})

Properties

currentPath String
The current path of match, eg: adding 'user/:id' the match result for 'user/123' will be: 'user/123'
final
hashCode int
The hash code for this object.
no setterinherited
node RouteNode
The route found that matches the result
final
parameters Map<String, String>
Route parameters eg: adding 'user/:id' the match result for 'user/123' will be: {id: 123}
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
urlParameters Map<String, String>
Route url parameters eg: adding 'user' the match result for 'user?foo=bar' will be: {foo: bar}
final

Methods

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

Operators

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