select method

void select(
  1. int index
)

Implementation

void select(int index) {
  _selectedIndex = index;
  notifyListeners();
}