RouteNode<T extends RouteValue> class
abstract
A linked list representing the navigation stack. Each RouteNode corresponds to a route.
- Implementers
Constructors
-
RouteNode({required HyperRoute<
RouteValue> route, Completer? popCompleter})
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isTop → bool
-
True if this is the last node in the list
no setter
- key → Object
-
Same as RouteValue.key
no setter
-
next
→ RouteNode<
RouteValue> ? -
RouteNode that follows this one.
no setter
- popCompleter → Completer
-
final
-
route
→ HyperRoute<
RouteValue> -
The route configuration (from the tree)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
The RouteValue of this route
no setter
Methods
-
containsNode(
Object key) → bool -
Check if the stack contains a node with the provided
key
-
copyStack(
) → RouteNode< RouteValue> -
createPages(
BuildContext context) → Iterable< Page> -
cut(
Object key) → RouteNode< RouteValue> ? -
Returns a copy of the list from the node it's called on, up to the node
with the provided
key
-
forEach(
void action(RouteNode< RouteValue> node)) → void -
last(
) → RouteNode< RouteValue> - Returns the last node in the list
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pop(
) → RouteNode< RouteValue> ? -
toString(
) → String -
A string representation of this object.
inherited
-
toUrl(
) → UrlData -
withUpdatedValue(
Object key, RouteValue value) → RouteNode< RouteValue> -
Returns a copy of the stack where the node with
key
is replaced with a node containing the provided value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override