Option.choice constructor
Option.choice(
- String name,
- String description,
- OptionType type,
- List<
OptionChoice> choices, { - bool? required = false,
Implementation
factory Option.choice(String name, String description, OptionType type, List<OptionChoice> choices, { bool? required = false }) {
return Option(name: name, description: description, type: type, choices: choices, required: required);
}