containsState<S> method

bool containsState<S>()

Checks whether a state of S type was registered before. Returns false if this Bloc was disposed.

Implementation

bool containsState<S>() => isDisposed ? false : _store.containsKey(S);