select method
Selects an index (adds to selection in multi-select, replaces in single).
Implementation
void select(int index) {
if (multiSelect) {
_selected.add(index);
} else {
_selected.clear();
_selected.add(index);
}
}
Selects an index (adds to selection in multi-select, replaces in single).
void select(int index) {
if (multiSelect) {
_selected.add(index);
} else {
_selected.clear();
_selected.add(index);
}
}