The forward operation definition type.
The inverse operation definition type.
ReadonlyderiveDerives the input for the inverse operation from the forward operation's input and output.
ReadonlyinverseThe inverse operation to invoke for undo.
Optional ReadonlymessageOptional message to show in the undo toast. Can be a static Label or a function that derives the message from input/output.
ReadonlyoperationThe forward operation.
Undo mapping that links a forward operation to its inverse. Type parameters ensure deriveContext has correctly typed arguments.