allStacks property

All the NavigationStack in the stack.

Similar to allNodes, but returns NavigationStack instead of Destination.

From root to top, this would be always the last element.

Implementation

Iterable<NavigationStack> get allStacks sync* {
  if (_stack != null) {
    yield* _stack!.allStacks;
  }
  yield this;
}