state<T> method

T state<T>()

Implementation

T state<T>() {
  try {
    return _states[T] as T;
  } catch (e) {
    throw MinimalistStateError(
        "The submitted State is not known, did you supply the state to the Store?");
  }
}