Command class

Provides the Command class. A command which can be executed by the player, or by a simulation.

Constructors

Command({int? interval, void onStart()?, void onUndo()?, void onStop()?})
Create a command.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
interval int?
The number of milliseconds which must elapse between uses of this command.
final
onStart → (void Function()?)
The function which will run when this command is started.
final
onStop → (void Function()?)
The function which will run when this command is stopped.
final
onUndo → (void Function()?)
The function which will undo the onStart function.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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