MatchResult class

A class representing the result of a route matching operation.

Constructors

MatchResult(String path, Map<String, String> parameters, {required String cleanPath, required RouteDefinition routeDefinition, Map<String, String> urlParameters = const {}})

Properties

cleanPath String
The clean path of the route e.g. '/profile/123?foo=bar&baz=qux' will be '/profile/123'
final
hashCode int
The hash code for this object.
no setterinherited
parameters Map<String, String>
Route parameters eg: adding 'user/:id' the match result for 'user/123' will be: {id: 123}
final
path String
Route found that matches the result
final
routeDefinition RouteDefinition
The route definition that matched the result
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