CommandEntity class Null safety

Base object for CommandHandler and CommandGroup

Implementers

Constructors

CommandEntity()

Properties

afterHandler AfterHandlerFunction?
Callback executed after executing command
read-only
aliases List<String>
Aliases of CommandEntity
read-only
beforeHandler PassHandlerFunction?
Executed before executing command. Used to check if command can be executed in current context.
read-only
commandNames List<String>
A list of valid command names
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
Name of CommandEntity
read-only
parent CommandEntity?
Parent of entity
read-only
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
isEntityName(String str) bool
Returns true if provided String str is entity name or alias
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