State for a TabBarSelection widget.

Subclasses of TabBarSelection typically use State objects that extend this class.

Inheritance
Mixes-in
  • SingleTickerProviderStateMixin

Constructors

TabBarSelectionState()

Properties

animation Animation<double>

An animation that updates as the selected tab changes.

read-only
index int

The index of the currently selected value.

read-only
previousIndex int

The index of the previoulsy selected value.

read-only
previousValue → T

The previously selected value.

read-only
value → T

The currently selected value.

read / write
valueIsChanging bool

Whether the tab selection is in the process of animating from one value to another.

read-only
values List<T>

The list of possible values that the selection can obtain.

read-only
config TabBarSelection<T>

The current configuration.

read-only, inherited
context BuildContext

The location in the tree where this widget builds.

read-only, inherited
hashCode int

Get a hash code for this object.

read-only, inherited
mounted bool

Whether this State object is currently in a tree.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

addAnimationListener(TabBarSelectionAnimationListener listener) → void

Calls listener methods every time the value or status of the selection animation changes.

build(BuildContext context) Widget

Describes the part of the user interface represented by this widget.

deactivate() → void

Called when this object is removed from the tree.

didUpdateConfig(TabBarSelection<T> oldConfig) → void

Called whenever the configuration changes.

indexOf(T tabValue) int

The index of a given value in values.

initState() → void

Called when this object is inserted into the tree.

removeAnimationListener(TabBarSelectionAnimationListener listener) → void

Stop calling listener methods every time the value or status of the animation changes.

createTicker(TickerCallback onTick) Ticker

Creates a ticker with the given callback.

inherited
debugFillDescription(List<String> description) → void

Add additional information to the given description for use by toString.

inherited
dependenciesChanged() → void

Called when a dependency of this State object changes.

inherited
dispose() → void

Called when this object is removed from the tree permanently.

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
reassemble() → void

Called whenever the application is reassembled during debugging.

inherited
setState(VoidCallback fn) → void

Notify the framework that the internal state of this object has changed.

inherited
toString() String

Returns a string representation of this object.

inherited