Option.choice constructor Null safety

Option.choice(
  1. String name,
  2. String description,
  3. OptionType type,
  4. List<OptionChoice> choices,
  5. {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);
}