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< sections, NavNodeId id) → List<T> >NavNodeId> -
Ancestor ids of
id, outermost-first (empty if top-level or missing). -
find<
T> (List< NavSection< sections, NavNodeId id) → NavNode<T> >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
nodeor anything beneath it carries a badge — used to mark a collapsed module/rail icon with a dot. -
walk<
T> (List< NavSection< sections, void visit(NavNode<T> >T> node, List<NavNode< ancestors)) → voidT> > -
Depth-first walk over every node in
sections, with its ancestor path.