setState method

void setState()

Implementation

void setState() {
  state.setValue(state.getValue() + 1);
}