CommandHandler class Null safety

Basic implementation of command handler. Used internally in library.

Implemented types

Constructors

CommandHandler(String name, CommandHandlerFunction commandHandler, {List<String> aliases = const [], PassHandlerFunction? beforeHandler, AfterHandlerFunction? afterHandler, BasicCommandGroup? parent})
Basic implementation of command handler. Used internally in library.

Properties

afterHandler AfterHandlerFunction?
Callback executed after executing command
final
aliases List<String>
Aliases of CommandEntityAbstract
final
beforeHandler PassHandlerFunction?
Executed before executing command. Used to check if command can be executed in current context.
final
commandHandler CommandHandlerFunction
Main command callback
read / write, override-getter
commandNames List<String>
A list of valid command names
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
Name of CommandEntityAbstract
final
parent ↔ BasicCommandGroup?
Parent of entity
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getFullCommandMatch() String
RegEx matching the fully qualified command name with its parents and all aliases
inherited
isEntityName(String str) bool
Returns true if provided String str is entity name or alias
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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