addState<S> method

  1. @protected
void addState<S>(
  1. S uiState
)

Adds state of S type to the stream that corresponding to state type.

Throws ArgumentError if state of such type was not registered.

Implementation

@protected
void addState<S>(S uiState) {
  if (!isDisposed) {
    _store[S].add(uiState);
  }
}