NavigationStack class

Describes the Destination and all its ancestors

Constructors

Create a single destination stack.
factory

Properties

allNodes Iterable<Destination>
All the Destinations in the stack.
no setter
allStacks Iterable<NavigationStack>
All the NavigationStack in the stack.
no setter
current Destination
The current destination.
final
depth int
The depth of the stack.
no setter
hashCode int
The hash code for this object.
no setteroverride
isRoot bool
Whether current is the root node.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

as<D extends Destination>() → D
Cast current into type D. Throws if the cast fails. Useful when confident about current's type.
buildLocation() String
Build location string from the stack, which is used by the RouteInformation.location
find<D extends Destination>() → D?
Find the closest ancestor with type D, current is checked. Useful to looking for data hold by parent destination.
Try to intelligently pop and push the stack to ensure destination at the top. Or an stack with BadDestination will be returned.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop() NavigationStack
Pop the last destination from the stack.
popUntil(DestionPredicate criteria) NavigationStack
Pop nodes until the criteria is satisfied or isRoot is true.
push(Destination destination) NavigationStack
Push a destionation onto the stack.
pushAll(Iterable<Destination> nodes) NavigationStack
Push all given nodes onto the stack.
pushPath(String path) NavigationStack
Push path on the current stack
pushPathVisitor(RoutePathVisitor visitor) NavigationStack
Push visitor on the current stack
toString() String
A string representation of this object.
inherited

Operators

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