NavOps class

Static helpers shared by the controller and the view.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

ancestorsOf<T>(List<NavSection<T>> sections, NavNodeId id) List<NavNodeId>
Ancestor ids of id, outermost-first (empty if top-level or missing).
find<T>(List<NavSection<T>> sections, NavNodeId id) NavNode<T>?
Find a node by id across all sections, or null.
leafIds<T>(NavNode<T> node) List<NavNodeId>
All leaf ids beneath (and including, if leaf) node.
subtreeHasBadge<T>(NavNode<T> node) bool
True when node or anything beneath it carries a badge — used to mark a collapsed module/rail icon with a dot.
walk<T>(List<NavSection<T>> sections, void visit(NavNode<T> node, List<NavNode<T>> ancestors)) → void
Depth-first walk over every node in sections, with its ancestor path.