undo

void undo()

Go back one state in history.

Implementation

void undo() {
  if (!canUndo) return;
  _currentIndex--;
  _notifyStore();
}