Returns whether a specific item is selected.
bool isSelected(T item) => selectedItems.contains(item);