updateState method

void updateState(
  1. T newValue
)

Implementation

void updateState(T newValue) {
  if (!_state.isClosed) {
    _state.add(newValue);
  }
}