whenNotSelected method
When the widget is not selected, call the onSelect function and set the state to selected
Implementation
void whenNotSelected() {
if (widget.displayColoring) {
setState(() {
selected = true;
});
}
onSelect.call();
}