ICommand<T extends IContext> class Null safety

An entity capable of being invoked by users.

You might also be interested in:

Implemented types




checks Iterable<AbstractCheck>
The checks that should be applied to this entity.
read-only, inherited
execute Function
The function called to execute this command.
hashCode int
The hash code for this object.
read-only, inherited
localizedNames Map<Locale, String>?
The localized names of this child. Since you cannot add descriptions to UserCommand and MessageCommand, can't set localized descriptions too.
read-only, inherited
name String
The name of this child.
read-only, inherited
onPostCall Stream<T>
A stream that emits contexts after the command callback is executed.
read-only, inherited
onPreCall Stream<T>
A stream that emits contexts before the command callback is executed.
read-only, inherited
options CommandOptions
The options to use for this entity.
read-only, inherited
parent ICommandGroup<IContext>?
The parent of this child.
read / write, inherited
resolvedOptions CommandOptions
Get the resolvec options for this child.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


check(AbstractCheck check) → void
Add a check to this entity.
invoke(T context) → void
Parse arguments, verify checks, call execute and handle call hooks.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.


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