stringConverter top-level constant Null safety

Converter<String> const stringConverter

A Converter that converts input to a String.

This converter returns the next space-seperated 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,
);