values property

Iterable<String> get values

The allowed enum values.

Implementation

Iterable<String> get values {
  final values = (_value['enum'] as Iterable?)?.cast<String>();
  if (values == null) {
    throw ArgumentError('Missing required property "values"');
  }
  assert(
    values.toSet().length == values.length,
    "The 'values' property has duplicate entries.",
  );
  return values;
}