getState<S> method

S? getState<S>()

Returns last state of S type or null if isDisposed

Implementation

S? getState<S>() => isDisposed ? null : _store[S]._lastState;