CommandDeclarationBuilder class final
Constructors
Properties
- context ↔ CommandContextType
-
getter/setter pair
-
groups
→ List<
CommandGroupBuilder> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String?
-
getter/setter pair
-
options
→ List<
CommandOption> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subCommands
→ List<
SubCommandBuilder> -
final
Methods
-
addOption<
T extends CommandOption> (T option) → CommandDeclarationBuilder -
addSubCommand(
dynamic command(SubCommandBuilder)) → CommandDeclarationBuilder -
createGroup(
CommandGroupBuilder group(CommandGroupBuilder)) → CommandDeclarationBuilder -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduceHandlers(
String commandName) → List< (String, Function)> -
setContext(
CommandContextType context) → CommandDeclarationBuilder -
setDescription(
String description, {Translation? translation}) → CommandDeclarationBuilder -
setHandle(
Function fn) → CommandDeclarationBuilder -
setName(
String name, {Translation? translation}) → CommandDeclarationBuilder -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited