RouteHandler class
Ties up RouteNavigator and ControlRoute.
Initializes Widget, builds Route with given properties and pushes this route to Navigator. Do not open multiple routes from one handler !
Constructors
- RouteHandler(ControlRoute routeProvider)
- Builds Widget and pushes Route to Navigator.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String?
-
Route name. This identifier is typically stored in RouteStore.
Check RouteStore.routeIdentifier for more info about Store keys.
no setter
- isHandled → bool
-
Checks if this handler did his job.
Do not open multiple routes from one handler !
no setter
-
Implementation of navigator.
final
- result → Future?
-
Future of navigation result.
This future is finished when Route is closed.
no setter
- route → Route?
-
Actual Route build.
no setter
- routeProvider → ControlRoute
-
Implementation of provider.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
named(
String identifier) → RouteHandler - Creates copy of RouteHandler with given identifier.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openDialog(
{bool root = true, dynamic type, dynamic args}) → Future - @{macro route-dialog}
-
openRoot(
{dynamic args}) → Future? - Clears current Navigator and opens new Route.
-
openRoute(
{bool root = false, bool replacement = false, dynamic args}) → Future? - @{macro route-open}
-
path(
{InitFactory? name, InitFactory? query}) → RouteHandler - Creates copy of RouteHandler with given path name.
-
toString(
) → String -
A string representation of this object.
inherited
-
viaRoute(
RouteBuilderFactory builder) → RouteHandler - Creates copy of RouteHandler with given builder.
-
viaTransition(
RouteTransitionFactory transition) → RouteHandler - Creates copy of RouteHandler with given transition.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited