onItemCheckedChange method
Implementation
List<T> onItemCheckedChange(
List<T> selectedValues, T itemValue, bool checked) {
if (checked) {
selectedValues.add(itemValue);
} else {
selectedValues.remove(itemValue);
}
return selectedValues;
}