MyMessage constructor

MyMessage({
  1. MyEnum? e,
  2. Iterable<MyEnum>? repeatedE,
  3. Iterable<MyEnum>? repeatedPackedE,
  4. Iterable<MyEnumPlusExtra>? repeatedPackedUnexpectedE,
  5. MyEnum? oneofE1,
  6. MyEnum? oneofE2,
})

Implementation

factory MyMessage({
  MyEnum? e,
  $core.Iterable<MyEnum>? repeatedE,
  $core.Iterable<MyEnum>? repeatedPackedE,
  $core.Iterable<MyEnumPlusExtra>? repeatedPackedUnexpectedE,
  MyEnum? oneofE1,
  MyEnum? oneofE2,
}) {
  final _result = create();
  if (e != null) {
    _result.e = e;
  }
  if (repeatedE != null) {
    _result.repeatedE.addAll(repeatedE);
  }
  if (repeatedPackedE != null) {
    _result.repeatedPackedE.addAll(repeatedPackedE);
  }
  if (repeatedPackedUnexpectedE != null) {
    _result.repeatedPackedUnexpectedE.addAll(repeatedPackedUnexpectedE);
  }
  if (oneofE1 != null) {
    _result.oneofE1 = oneofE1;
  }
  if (oneofE2 != null) {
    _result.oneofE2 = oneofE2;
  }
  return _result;
}