CommandHandlerSet<T> class

A set of CommandHandler instances representing subcommands.

Constructors

CommandHandlerSet.custom(List<CommandHandler<T>> _handlers, {required ValueParser<T> parser, ValuePrinter<T>? printer})

Properties

handlers → List<CommandHandler<T>>
no setter
hashCode → int
The hash code for this object.
no setterinherited
parser → ValueParser<T>
final
printer → ValuePrinter<T>?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → T
no setter

Methods

add(CommandHandler<T> handler) → void
addAll(Iterable<CommandHandler<T>> handlers) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

from(List<CommandHandler<String>> handlers) → CommandHandlerSet<String>