clearHistory method

void clearHistory()

Clears undo and redo history.

Implementation

void clearHistory() {
  _undoStack.clear();
  _redoStack.clear();
  _historyBatchSnapshot = null;
  _historyBatchDepth = 0;
}