selectAll method
Selects all items.
If allowMultiSelect is false, this selects only the last item in the iterable.
Implementation
void selectAll(Iterable<T> items) {
if (!allowMultiSelect) {
if (items.isNotEmpty) {
select(items.last);
}
} else {
selectedItems.addAll(items);
}
}