togglePaintState method

void togglePaintState(
  1. bool newValue
)

Implementation

void togglePaintState(bool newValue){
  _state.updatePaintState = newValue;
  notifyListeners();
}