EnumValue constructor

EnumValue({
  1. String? name,
  2. int? number,
  3. Iterable<Option>? options,
})

Implementation

factory EnumValue({
  $core.String? name,
  $core.int? number,
  $core.Iterable<Option>? options,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (number != null) {
    $result.number = number;
  }
  if (options != null) {
    $result.options.addAll(options);
  }
  return $result;
}