RouteInformation class
A piece of routing information.
The route information consists of a location string of the application and a state object that configures the application in that location.
This information flows two ways, from the RouteInformationProvider to the Router or from the Router to RouteInformationProvider.
In the former case, the RouteInformationProvider notifies the Router widget when a new RouteInformation is available. The Router widget takes these information and navigates accordingly.
The latter case should only happen in a web application where the Router reports route change back to web engine.
Constructors
-
RouteInformation({String location,
Object state} ) -
Creates a route information.
const
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- location → String
-
The location of the application. [...]
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- state → Object
-
The state of the application in the location. [...]
final
Methods
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other ) → bool -
The equality operator. [...]
inherited