index property

int get index

The currently active tab index.

Implementation

int get index => _index;
set index (int value)

Sets the currently active tab index and notifies listeners.

Implementation

set index(int value) {
  final clamped = value.clamp(0, length - 1);
  if (clamped != _index) {
    _index = clamped;
    _notify();
  }
}