RouterState class

Represents the state of the router, which is a URL and matching routes.

Constructors

RouterState(String path, List<RouteDefinition> routes, { Map<String, String> parameters, String fragment: '', Map<String, String> queryParameters })

Properties

parameters → Map<String, String>
A map of URL parameters. [...]
final
routePath RoutePath
read-only
routes → List<RouteDefinition>
Matching route definitions at this URL.
final
fragment → String
Optional; if non-empty this is the part of the URL after a # symbol.
final, inherited
hashCode → int
The hash code for this object. [...]
read-only, inherited
path → String
URL path.
final, inherited
queryParameters → Map<String, String>
Query parameters.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toUrl() → String
Returns as a URL string that could be used for navigation/link sharing.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited