index property

  1. @override
int index
override

The index of the currently selected tab.

Changing the index also updates previousIndex, sets the animation's value to index, resets indexIsChanging to false, and notifies listeners.

To change the currently selected tab and play the animation use animateTo.

The value of index must be valid given length. If length is zero, then index will also be zero.

Implementation

@override
int get index => _indexedController.index;
  1. @override
void index=(int value)
override

Implementation

@override
set index(int value) => _indexedController.index = value;