stringConverter top-level constant

Converter<String> const stringConverter

A Converter that converts input to a String.

This converter returns the next space-separated word in the input, or, if the next word in the input is quoted, the next quoted section of the input.

This converter has a Discord Slash Command Argument Type of CommandOptionType.string.

Implementation

const Converter<String> stringConverter = Converter<String>(
  convertString,
  type: CommandOptionType.string,
  toSelectMenuOption: stringToSelectMenuOption,
  toButton: stringToButton,
);