isSelected method

bool isSelected(
  1. K item
)

Checks whether given item is marked as selected.

Implementation

bool isSelected(K item) {
  return _selectedItems.contains(item);
}