allNodes property

Iterable<Destination> allNodes

All the Destinations 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;
}