NavNodeRole enum
The four visual roles a node can take, derived from its position.
Values
- direct → const NavNodeRole
-
Depth-0 leaf — a flat top-level destination (e.g. Dashboard). Renders as a pill row that fills with the accent when active.
- module → const NavNodeRole
-
Depth-0 branch — a collapsible module (e.g. Accounts). Renders with its leading icon and a disclosure chevron; tints accent when it owns the active screen.
- group → const NavNodeRole
-
Depth-≥1 branch — a sub-group header inside a module (e.g. Chart of Accounts). Renders uppercase with a bullet.
- item → const NavNodeRole
-
Depth-≥1 leaf — a destination inside a group. Renders with a boxed icon.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
of(
{required int depth, required bool hasChildren}) → NavNodeRole -
Resolve a node's role from its
depthand whether ithasChildren.
Constants
-
values
→ const List<
NavNodeRole> - A constant List of the values in this enum, in order of their declaration.