EnumDefinition constructor
EnumDefinition({
- required EnumName name,
- required Iterable<
EnumValueDefinition> values,
Instantiate an enum definition.
Implementation
EnumDefinition({
required this.name,
required this.values,
}) : assert(hasValue(name) && hasValue(values)),
super(name: name);