ChoiceOption.string constructor

ChoiceOption.string({
  1. required String name,
  2. required String description,
  3. required List<Choice<String>> choices,
  4. bool required = false,
})

Implementation

factory ChoiceOption.string(
        {required String name,
        required String description,
        required List<Choice<String>> choices,
        bool required = false}) =>
    ChoiceOption._(
        name, description, CommandOptionType.string, required, null, choices);