unselectWhere method
unselects the items that satisfy the predicate.
The predicate parameter is a function that takes a DropdownItem and returns a boolean.
Implementation
void unselectWhere(bool Function(DropdownItem<T> item) predicate) {
_selected.removeWhere(predicate);
notifyListeners();
_onSelectionChanged?.call(_selectedValues);
}