addGroup<T> method

void addGroup<T>(
  1. List<Change<T>> changes
)

Add New Group of Changes and Clear Redo Stack

Implementation

void addGroup<T>(List<Change<T>> changes) {
  try {
    _applyChanges(changes);
    _history.addLast(changes);
    _moveForward();
  } catch (e) {
    rethrow;
  }
}