toggleValue method

dynamic toggleValue()

Emit state with !value

Implementation

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