Command class
Object to store parsed user input.
Constructors
- Command({required TaskName taskName, required ScriptName scriptName, String? option})
-
Create a Command object which should always
contain a TaskName and ScriptName.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- option → String?
-
Optional value which may or may not be used by the Task.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scriptName → ScriptName
-
Name of script which should contain a Task with TaskName.
final
- taskName → TaskName
-
Name of Task to be executed.
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
Static Methods
-
from(
{required ScriptName script, required String task}) → Command? - Parse a received command and return the command data.