select method

void select(
  1. int index
)

外部接口

Implementation

void select(int index) {
  if (multiple) {
    if (!_selected.contains(index)) _selected.add(index);
  } else {
    _selected = [index];
  }
  _notify();
}