TabData class
The tab data.
The text displayed on the tab is defined by text parameter.
The optional value parameter allows associate the tab to any value.
The optional content parameter defines the content of the tab.
The closable parameter defines whether the Close button is visible.
The buttons parameter allows you to define extra buttons in addition to the Close button.
The keepAlive parameter indicates whether to keep the tab content widget
in memory even if it is not visible. Indicated to prevent loss of state
due to tree change by tab selection. If enabled, the Widget will
continue to be instantiated in the tree but will remain invisible.
The default value is FALSE
.
A more efficient alternative is to keep the data in TabData's value
parameter as long as the TabbedViewController is being kept in the
state of its class.
See also:
- Inheritance
-
- Object
- ChangeNotifier
- TabData
- Mixed in types
Constructors
Properties
-
getter/setter pair
- closable ↔ bool
-
getter/setter pair
- content ↔ Widget?
-
getter/setter pair
- draggable → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- index → int
-
The current index in the controller.
no setterinherited
- keepAlive → bool
-
final
- key → Key
-
Identifies the content of the tab in the tree
final
- leading ↔ TabLeadingBuilder?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String
-
getter/setter pair
- uniqueKey → UniqueKey
-
final
- value ↔ dynamic
-
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited