getStateStream<S> method

BehaviorSubject<S> getStateStream <S>()

Retrieves a state from the stateful event bus of Type S

Implementation

BehaviorSubject<S> getStateStream<S>() {
  final type = initState<S>();

  return _stateMap[type] as BehaviorSubject<S>;
}