RootHyperController class

Inheritance
Implemented types

Constructors

RootHyperController({required RouteValue initialRoute, required RouteValue? redirect(BuildContext context, RedirectState state), required Map<Object, HyperRoute<RouteValue>> routeMap})

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
rootNavigatorNode NavigatorNode
final
routeMap Map<Object, HyperRoute<RouteValue>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack RouteNode<RouteValue>
The navigation stack
no setteroverride

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
createPages(BuildContext context) List<Page>
createStack(RouteValue target, [Set<RouteValue> values = const {}]) RouteNode<RouteValue>
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
extractCurrentValues() Map<Object, RouteValue>
Updates the navigation stack to the path from target to the root of the navigation tree. The target route will receive target as its value.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pop<T>([T? result]) → void
Removes the top-most route from the stack.
override
popRoute<T>(T? result) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setStack(RouteNode<RouteValue> value, {bool notify = true}) → void
toString() String
A string representation of this object.
inherited

Operators

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