canToggle method
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;
}
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;
}