CarpenterUndoableOperation class final

One reversible operation registered in a CarpenterUndoController.

Annotations

Constructors

CarpenterUndoableOperation({required String label, required FutureOr<void> undo(), FutureOr<void> redo()?})
Creates one completed operation with required undo and optional redo.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
label → String
Human-readable operation name used by command and feedback surfaces.
final
redo → FutureOr<void> Function()?
Reapplies the operation after an undo. Null means the operation is intentionally undo-only and therefore never enters the redo stack.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
undo → FutureOr<void> Function()
Reverses the completed operation.
final

Methods

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