Store<State> constructor

Store<State>(
  1. {@required State initialState}
)

Create a new store from an initialState.

Implementation

Store({
  @required State initialState,
}) : super(initialState) {
  _serviceLocator = ServiceLocator(() => state);
}