FallbackConverter<T> class Null safety

Object used to successivly try similar Converters until a successful parsing is found.

Implemented types

Constructors

FallbackConverter(Iterable<Converter<T>> converters, {Iterable<ArgChoiceBuilder>? choices, CommandOptionType? type})
Construct a new FallbackConverter. [...]
const

Properties

choices Iterable<ArgChoiceBuilder>?
A Iterable of choices users can choose from. [...]
read-only, override
convert FutureOr<T?> Function(StringView view, Context context)
The function called to process the input. [...]
read-only, override
converters Iterable<Converter<T>>
A list of Converters this FallbackConverter will try in succession.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
output Type
The output Type of this converter.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type CommandOptionType
The CommandOptionType that arguments using this converter will use for Discord slash commands.
read-only, override

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