replaceState method

void replaceState(
  1. State state
)

replaceState replaces the state of your store. Useful for undo/redo, testing, and development tools

Implementation

void replaceState(State state) {
  if (_state != state) {
    _stateController.add(StoreChange<State, StateBuilder, dynamic>(
        state, _state, Action<Null>('replaceState', null)));
    _state = state;
  }
}