clearAll method

void clearAll()

clears all the selected items.

Implementation

void clearAll() {
  _selected.clear();
  for (final element in _items) {
    element.selected = false;
  }
  notifyListeners();
  _onSelectionChanged?.call(_selectedValues);
}