Commands class
Constructors
-
Commands.new({Map<
String, Command> ? commands, Command? defaultCommand})
Properties
-
commands
→ Map<
String, Command> -
final
- defaultCommand ↔ Command?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
group(
{String? description}) → GroupCommand - Creates a new GroupCommand with the Commands as the commands.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
use(
String name, Command command, {bool isDefault = false}) → void - Appends a command to the list of commands.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited