FallbackConverter<T> constructor Null safety

const FallbackConverter<T>(
  1. Iterable<Converter<T>> converters,
  2. {Iterable<ArgChoiceBuilder>? choices,
  3. CommandOptionType? type,
  4. void processOptionCallback(
    1. CommandOptionBuilder
    )?,
  5. FutureOr<Iterable<ArgChoiceBuilder>?> autocompleteCallback(
    1. AutocompleteContext
    )?}
)

Create a new FallbackConverter.

Implementation

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