Documentation Language: Swift

Method

flush()

Clear all command history.

@MainActor func flush()

Discussion

This method removes all commands from both undo and redo stacks, effectively resetting the command history.