checkEvent method

void checkEvent()

Implementation

void checkEvent() {
  if (!widget.allowReverseSelection && isCheck) {
    return;
  }
  isCheck = !isCheck;
  if (mounted) {
    setState(() {
      if (isCheck) {
        _iconData = widget.checkIcon;
        _iconColor = widget.selectIconColor;
      } else {
        _iconData = widget.uncheckIcon;
        _iconColor = widget.unSelectIconColor;
      }
    });
  }
  if (widget.checkedCall != null) {
    widget.checkedCall!(isCheck, widget.tag, widget.position ?? 0);
  }
}