setEnableInteraction method
Sets the interaction state to the given value and updates the UI accordingly.
Implementation
void setEnableInteraction(bool value) {
if (_enableInteraction != value) {
_enableInteraction = value;
setState(() {});
}
}