updateState method

void updateState()

Implementation

void updateState() {
  emit(!state);
}