updateState method

void updateState(
  1. S state,
  2. Emitter<S> emit
)

Implementation

void updateState(S state, Emitter<S> emit) {
  if (!isClosed) {
    emit(state);
  }
}