Action<State, System, T, R> class
final
A command that performs actions with generated values.
Constructors
Properties
- description → String
-
A description of the command.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
nextState(
CommandContext< State, System> context, State state) → Future<void> -
Updates the state to the next state.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postcondition(
CommandContext< State, System> context, State state, dynamic result) → Future<bool> -
Returns true if postcondition of the command is satisfied.
override
-
precondition(
CommandContext< State, System> context, State state) → Future<bool> -
Returns true if the command can be run on the given state.
override
-
run(
CommandContext< State, System> context, System system) → Future<R> -
Performs the command on the given system.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited