undo method

bool undo()

Restores the previous edit state and notifies listeners.

Implementation

bool undo() {
  final changed = _model.undo();
  if (changed) {
    notifyListeners();
  }
  return changed;
}