onTapIcon method

void onTapIcon(
  1. IconPickerIcon val, {
  2. VoidCallback? onSelected,
})

Implementation

void onTapIcon(IconPickerIcon val, {VoidCallback? onSelected}) {
  if (!_isMultiple) {
    onSelected?.call();
  } else {
    toggleSelectedIcon(val);
  }
  notifyListeners();
}