ChoiceVariadic<T extends Enum> constructor

ChoiceVariadic<T extends Enum>({
  1. String? description,
  2. required List<T> choices,
  3. T? defaultValue,
})

Implementation

new({super.description, required List<T> choices, this.defaultValue})
  : choices = List.unmodifiable(choices);