disableUndoRedo method

void disableUndoRedo()

Disables recording, clears both stacks and notifies history.

Implementation

void disableUndoRedo() {
  if (!_canChangeHistory) return;
  _undoRedoEnabled = false;
  clearHistory();
}