CombineConverter<R, T> class Null safety

Object used to combine converters.

This is useful in cases where a preliminary parsing can then be refined by applying a filter to the output, especially if the preliminary parsing can be done on Discord in the case of slash commands.

Implemented types

Constructors

CombineConverter(Converter<R> converter, FutureOr<T?> process(R, Context), {Iterable<ArgChoiceBuilder>? choices, CommandOptionType? type})
Construct a new CombineConverter. [...]
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
converter Converter<R>
The initial Converter. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
output Type
The output Type of this converter.
final
process FutureOr<T?> Function(R, Context)
The function used to further process the output of 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