index property
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();
}
}