NavigationState class
Gestisce lo stato dei breadcrumb e il nome della pagina corrente.
I breadcrumb sono gestiti automaticamente dal GoRouterBreadcrumbObserver. Non è necessario manipolarli manualmente dai moduli.
- Inheritance
-
- Object
- ChangeNotifier
- NavigationState
Constructors
Properties
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
headerTitleVisible
→ ValueNotifier<
bool> -
Diventa true quando il CLPageHeader è scrollato fuori dallo schermo.
L'HeaderLayout lo usa per mostrare il titolo con fade-in.
final
- initialRoute ↔ String?
-
Route iniziale salvata prima che l'app sia pronta (deep-link).
getter/setter pair
- pageName ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addBreadcrumb(
BreadcrumbItem item, {String? parentModuleName, String? parentModulePath}) → void - Aggiunge un breadcrumb allo stack.
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clearBreadcrumbs(
) → void - Svuota tutti i breadcrumb.
-
dispose(
) → void -
Discards any resources used by the object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
override
-
removeLastBreadcrumb(
) → void - Rimuove l'ultimo breadcrumb.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
removeUntil(
String targetPath) → void - Tronca tutto ciò che segue targetPath.
-
setHeaderTitleVisibility(
bool visible) → void -
Imposta la visibilità del titolo nell'header.
API additiva —
headerTitleVisibleresta accessibile per backward compat. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited