updateState method

void updateState(
  1. S state
)

Implementation

void updateState(S state) {
  if (!isClosed) {
    emit(state);
  }
}