RouteInformationProvider class

A route information provider that provides route information for the Router widget

This provider is responsible for handing the route information through value getter and notifies listeners, typically the Router widget, when a new route information is available.

When the router opts for the route information reporting (by overrides the RouterDelegate.currentConfiguration to return non-null), overrides the routerReportsNewRouteInformation method to process the route information.

See also:

Inheritance
Implementers

Constructors

RouteInformationProvider()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value RouteInformation
The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.
read-only, inherited

Methods

addListener(void listener()) → void
Register a closure to be called when the object notifies its listeners.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeListener(void listener()) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
routerReportsNewRouteInformation(RouteInformation routeInformation) → void
A callback called when the Router widget detects any navigation event due to state changes. [...]
toString() String
Returns a string representation of this object.
inherited

Operators

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