getState<S> method Null safety

S getState<S>()

Implementation

S getState<S>() => _stateByType[typeOf<S>()];