Enum constructor
Enum({})
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;
}