shouldReplay method
Checks whether the given state should be replayed from the undo/redo stack.
This is called at the time the state is being restored.
By default shouldReplay always returns true
.
Implementation
bool shouldReplay(State state) => true;