CommandSet<T> class
A set of commands that can be parsed by its parent ArgParser.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- parent → ArgParser
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → T
-
The ID of the command that the user selected. Attempting to access this
before arguments are parsed will throw an exception.
no setter
Methods
-
addCommand(
T id, {String? description, UsageGroup? usageGroup}) → CommandParser -
Adds a new command with the given
id
to this command set. -
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