M3ETabsController class

Selects a tab from outside the bar.

Pass it to M3ETabs.controller. select runs the bar's onTabSelected. index follows the bar's selected index.

Inheritance

Constructors

M3ETabsController({int index = 0})
Creates a controller at index.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
index ↔ int
Selected tab index.
getter/setter pair
isAttached → bool
Whether attach has been called.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
attach(ValueChanged<int> select, int index) → void
Binds the bar. select is the bar's onTabSelected.
detach(ValueChanged<int> select) → void
Drops the bar when select is still the bound callback.
dispose() → void
Discards any resources used by the object.
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
select(int index) → void
Asks the attached bar to select index.
toString() → String
A string representation of this object.
inherited
updateIndex(int index) → void
Stores the bar's current index.

Operators

operator ==(Object other) → bool
The equality operator.
inherited