toggleValue method

void toggleValue()

Emit state with !value

Implementation

void toggleValue() {
  emit(BoolChangedState(value: !state.value));
}