toggleSelectedIcon method

void toggleSelectedIcon(
  1. IconPickerIcon val
)

Implementation

void toggleSelectedIcon(IconPickerIcon val) {
  checkSelectedIconsList();

  if (!_selectedIcons.contains(val)) {
    _addSelectedIcon(val);
  } else {
    _removeSelectedIcon(val);
  }
}