clear method

void clear()

Add New Group of Changes and Clear Redo Stack Clear Undo History

Implementation

// void addGroup<T>(List<Change<T>> changes) {
//   _applyChanges(changes);
//   _history.addLast(changes);
//   _moveForward();
// }

// void _applyChanges(MyChange change) {
//   change.execute();
// }

/// Clear Undo History
void clear() => clearHistory();