setEnableInteraction method

void setEnableInteraction(
  1. bool value
)

Sets the interaction state to the given value and updates the UI accordingly.

Implementation

void setEnableInteraction(bool value) {
  if (_enableInteraction != value) {
    _enableInteraction = value;
    setState(() {});
  }
}