EnumDefinition constructor

EnumDefinition({
  1. required EnumName name,
  2. required Iterable<EnumValueDefinition> values,
})

Instantiate an enum definition.

Implementation

EnumDefinition({
  required this.name,
  required this.values,
})  : assert(hasValue(name) && hasValue(values)),
      super(name: name);