RouterState class

Constructors

RouterState()

Properties

component Router
The current configuration.
no setterinherited
context → BuildContext
The location in the tree where this component builds.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
matchList → RouteMatchList
no setter
mounted bool
Whether this State object is currently in a tree.
no setterinherited
routeLoaders Map<Object, RouteLoader>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
back() → void
build(BuildContext context) Iterable<Component>
Describes the part of the user interface represented by this component.
deactivate() → void
Called when this object is removed from the tree.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateComponent(covariant Router oldComponent) → void
Called whenever the component configuration changes.
dispose() → void
Called when this object is removed from the tree permanently.
inherited
initRoutes() Future<void>
initState() → void
Called when this object is inserted into the tree.
namedLocation(String name, {Map<String, String> params = const <String, String>{}, Map<String, dynamic> queryParams = const <String, dynamic>{}}) String
Get a location from route name and parameters. This is useful for redirecting to a named location.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preload(String location) Future<void>
preloadState() Future<void>
Called on the server before initState() to preload asynchronous data
push(String location, {Object? extra}) Future<void>
pushNamed(String name, {Map<String, String> params = const <String, String>{}, Map<String, dynamic> queryParams = const <String, dynamic>{}, Object? extra}) Future<void>
replace(String location, {Object? extra}) Future<void>
replaceNamed(String name, {Map<String, String> params = const <String, String>{}, Map<String, dynamic> queryParams = const <String, dynamic>{}, Object? extra}) Future<void>
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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