UndoableCommand<State> class abstract interface

A command that knows how to apply and undo its own effect on a mutable state.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Command category for journal persistence.
no setter

Methods

apply(State state) → void
Applies this command to state.
mergeWith(UndoableCommand<State> next) UndoableCommand<State>?
Attempts to merge next into 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 state to the value before this command ran.

Operators

operator ==(Object other) bool
The equality operator.
inherited