addState<S> method
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);
}
}