pushUndo method
Implementation
void pushUndo(List<String> lines, CursorPosition pos) {
_undoStack.add(
_UndoEntry(lines: List.of(lines), cursor: pos, group: _undoGroupCounter),
);
_redoStack.clear();
}
void pushUndo(List<String> lines, CursorPosition pos) {
_undoStack.add(
_UndoEntry(lines: List.of(lines), cursor: pos, group: _undoGroupCounter),
);
_redoStack.clear();
}