removeItem method

void removeItem(
  1. T item
)

Removes an item from the selection.

Implementation

void removeItem(T item) {
  if (_selectedItems.remove(item)) {
    _notifySelectionChanged();
    notifyListeners();
  }
}