FallbackConverter<T> constructor Null safety

const FallbackConverter<T>(
  1. Iterable<Converter<T>> converters,
  2. {Iterable<ArgChoiceBuilder>? choices,
  3. CommandOptionType? type}
)

Construct a new FallbackConverter.

This must then be registered to a CommandsPlugin instance with CommandsPlugin.addConverter.

The choices for this converter will be inherited from converters, but can be overridden by passing choices.

The type for this converter will be inferred from converters, but can be overridden by passing type.

Implementation

const FallbackConverter(
  this.converters, {
  Iterable<ArgChoiceBuilder>? choices,
  CommandOptionType? type,
})  : _choices = choices,
      _type = type,
      output = T;