selectedIndex property

int get selectedIndex

The index of the currently selected option.

Implementation

int get selectedIndex => _selectedIndex;
set selectedIndex (int index)

Implementation

set selectedIndex(int index) {
  if (_selectedIndex != index) {
    _selectedIndex = index;
    _notify();
  }
}