Enum constructor

Enum({
  1. String? name,
  2. Iterable<EnumValue>? enumvalue,
  3. Iterable<Option>? options,
  4. SourceContext? sourceContext,
  5. Syntax? syntax,
})

Implementation

factory Enum({
  $core.String? name,
  $core.Iterable<EnumValue>? enumvalue,
  $core.Iterable<Option>? options,
  $1.SourceContext? sourceContext,
  Syntax? syntax,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (enumvalue != null) {
    $result.enumvalue.addAll(enumvalue);
  }
  if (options != null) {
    $result.options.addAll(options);
  }
  if (sourceContext != null) {
    $result.sourceContext = sourceContext;
  }
  if (syntax != null) {
    $result.syntax = syntax;
  }
  return $result;
}