Choices class Null safety

A decorator used to specify choices for Command arguments.

This overrides the Converter.choices for the argument type.

Constructors

Choices(Map<String, dynamic> choices)
Create a new instance to specify choices for an argument, like so: [...]
const

Properties

builders Iterable<ArgChoiceBuilder>
Converts the entries in choices to ArgChoiceBuilders.
read-only
choices Map<String, dynamic>
The choices for this argument. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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