EntityTab class

Descrittore dichiarativo di una singola tab di dettaglio entità.

Pensato per essere registrato in una lista e passato a CLEntityTabs, che filtra per guard e delega il rendering a CLTabView. Il contenuto è costruito pigramente tramite builder: viene invocato solo quando la tab viene effettivamente montata.

Constructors

EntityTab({required String key, required String label, required EntityDomain domain, required Widget builder(), IconData? icon, bool guard()?})
const

Properties

builder Widget Function()
Costruttore pigro del contenuto della tab.
final
domain EntityDomain
Dominio applicativo di provenienza.
final
guard bool Function()?
Gate di visibilità basato sui permessi. null => sempre visibile; altrimenti la tab è mostrata solo quando la callback ritorna true.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Icona opzionale mostrata accanto alla label.
final
key String
Identificatore stabile della tab (es. 'profile', 'contracts').
final
label String
Etichetta mostrata nella tab bar.
final
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