ChoiceOption<T extends Enum> constructor

ChoiceOption<T extends Enum>(
  1. String name, {
  2. required List<T> choices,
  3. String? short,
  4. String? description,
  5. bool hidden = false,
})

Implementation

new(
  super.name, {
  required List<T> choices,
  super.short,
  super.description,
  super.hidden,
}) : choices = List.unmodifiable(choices);