Package-level declarations

Types

Link copied to clipboard
class HistoryManager(capacity: Int = 100)

The undo/redo stack. execute runs a Command and makes it undoable; undo/redo walk the history in either direction. canUndo/canRedo are exposed as StateFlow so a host UI can enable/disable undo/redo buttons reactively without polling.