selectedIndex property

int? selectedIndex

The selected tab index

Implementation

int? get selectedIndex => _selectedIndex;
void selectedIndex=(int? tabIndex)

Changes the index of the selection and notifies.

Implementation

set selectedIndex(int? tabIndex) {
  if (tabIndex != null) {
    _validateIndex(tabIndex);
  }
  _selectedIndex = tabIndex;
  notifyListeners();
}