Store<S> constructor
Store<S> (
- S initialState
Constructs a standard store from an initial state.
Implementation
factory Store(S initialState) {
Store<S> store = DefaultStore<S>(initialState);
// If assertions are enabled, wrap it in a validating store.
assert(() {
store = ValidatingStore<S>(store);
return true;
}());
return store;
}