setState<S> method

void setState <S>(
  1. S state
)

Update or create a new state on the stateful event bus with the specified state.

Implementation

void setState<S>(S state) {
  final type = initState<S>();
  _stateMap[type].add(state);
}