canToggle method

bool canToggle(
  1. T item
)

Implementation

bool canToggle(T item) {
  if (!isMultiSelect) return true;
  if (isSelected(item)) return true;
  final max = options.maxSelection;
  if (max == null) return true;
  return _selected.length < max;
}