selectAtIndex method
select the item at the specified index.
The index parameter is the index of the item to select.
Implementation
void selectAtIndex(int index) {
if (index < 0 || index >= _items.length) return;
final item = _items[index];
if (item.disabled || item.selected) return;
selectWhere((element) => element == _items[index]);
}