updateCheck method

void updateCheck(
  1. bool check
)

Implementation

void updateCheck(bool check) {
  isCheck = check;
  if (mounted) {
    setState(() {
      if (check) {
        _iconData = widget.checkIcon;
      } else {
        _iconData = widget.uncheckIcon;
      }
    });
  }
}