activeStackFlattened method

Iterable<RoutebornPage> activeStackFlattened()

Implementation

Iterable<RoutebornPage> activeStackFlattened() {
  return pageNodesStack.expand(
    (e) sync* {
      yield e.page;
      if (e.crossroad != null) {
        yield* e.crossroad!.activeBranchStack.activeStackFlattened();
      }
    },
  );
}