Command class abstract
- Implementers
Constructors
- Command.new()
-
const
Properties
-
arguments
→ Iterable<
CommandArgument> -
Defines the command arguments
no setter
- description → String?
-
Text that will be displayed when
--help
is passed.no setter -
flags
→ Iterable<
CommandFlag> -
Defines the command flags.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
options
→ Iterable<
CommandOption> -
Defines the command options
no setter
- 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
-
printHelp(
CommandContext context) → void - Prints the help information for this command.
-
run(
CommandContext context) → FutureOr< void> - Runs the command.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited