CLDestination class
Destinazione di navigazione neutra: nessuna dipendenza da router/Modular.
L'app converte il proprio albero route in List<CLDestination> (adapter).
- Annotations
Constructors
Properties
-
children
→ List<
CLDestination> -
Figli → gruppo espandibile in sidebar/drawer. Vuoto = foglia.
final
- hasChildren → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
Icona come
IconData(es. Lucide, Material). Resa conIcon(icon).final - iconBuilder → Widget? Function(Color color, double size)?
-
Builder icona avanzato, per icone che NON sono
IconData(es. HugeIcon, SVG). Riceve colore+dimensione e ritorna il widget icona; ha precedenza suicon. L'adapter app lo usa per delegare aroute.buildIcon.final - isLeaf → bool
-
no setter
- isSectionHeader → bool
-
Label di sezione (non tappabile): rende un'intestazione collassabile
con i
childrencome voci sotto. Equivale aonlyShowLabel. Nota: una sezione senza figli ha siahasChildrensiaisLeaffalse (categoria a sé, non una foglia).final - isVisible → bool
-
final
- key → String
-
Id univoco e stabile (tipicamente il path assoluto o il route name).
Usato per selezione (
selectedKey) e callbackonSelect.final - label → String
-
final
- priority → int
-
Bottom bar: valore più alto = scelto prima tra le voci principali.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tint → Color?
-
Tinta opzionale del modulo. Consumata dall'adapter app (es. admin mappa
ModuleRoute.color→tintper i moduli colorati).final
Methods
-
buildIcon(
Color color, double size) → Widget? -
Costruisce l'icona col colore/size dati:
iconBuilderse presente, altrimentiIcon(icon), altrimenti null. -
containsKey(
String? k) → bool -
True se
keycorrisponde a questa destinazione o a un suo discendente. Usato per evidenziare/espandere gruppi quando un figlio è attivo. -
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