AdifEnumeration constructor
Implementation
AdifEnumeration(value, this.enumerations) : super(value.toUpperCase()) {
if (enumerations.any((e) => isNotPureAscii(e))) {
throw ArgumentError('Value must not contain non-ASCII characters: $enumerations');
}
if (!enumerations.contains(value.toUpperCase())) {
throw ArgumentError(
'Value must be one of the enumerations: $enumerations',
);
}
}