clear method

void clear()

Clears all history.

Implementation

void clear() {
  _undoStack.clear();
  _redoStack.clear();
}