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