GroupCommand class abstract

Inheritance

Constructors

GroupCommand.new({Map<String, Command>? commands, Command? defaultCommand, String? description})

Properties

arguments Iterable<CommandArgument>
Defines the command arguments
no setterinherited
commands Map<String, Command>
latefinal
defaultCommand Command?
final
description String?
Text that will be displayed when --help is passed.
final
flags Iterable<CommandFlag>
Defines the command flags.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
options Iterable<CommandOption>
Defines the command options
no setterinherited
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.
override
run(CommandContext context) FutureOr<void>
Runs the command.
override
toString() String
A string representation of this object.
inherited

Operators

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