undo method

S undo()

Undoes the last change to the store.

Implementation

S undo() {
  final target = _past.removeLast();
  return delegate.update((state) {
    _future.addFirst(state);
    return target;
  });
}