allNodes property
Iterable<Destination>
allNodes
All the Destination
s in the stack.
From root to current, current would be always the last element.
Implementation
Iterable<Destination> get allNodes sync* {
if (_stack != null) {
yield* _stack!.allNodes;
}
yield current;
}