CarpenterCommandUndoPolicy class final
Registers reversible successful command results in a shared undo controller.
This is application policy rather than behaviour-layer state: commands remain unaware of the controller, while the controller itself remains domain-neutral.
Constructors
- CarpenterCommandUndoPolicy(CarpenterUndoController controller)
-
Creates policy that writes reversible command results to
controller.const
Properties
- controller → CarpenterUndoController
-
History controller receiving successful reversible command results.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
handle(
CarpenterCommandExecutionEvent event) → void -
Registers undo and optional redo callbacks from a successful
event. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited