A command that knows how to apply and undo its own effect on a mutable state.
Properties
Methods
-
apply(
State state) → void -
Applies this command to
state. -
mergeWith(
UndoableCommand< State> next) → UndoableCommand<State> ? -
Attempts to merge
nextinto this command, returning a replacement. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Serializes the command payload for the journal.
-
toString(
) → String -
A string representation of this object.
inherited
-
undo(
State state) → void -
Restores
stateto the value before this command ran.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited