TestUnpackedTypes constructor

TestUnpackedTypes({
  1. Iterable<int>? repeatedInt32,
  2. Iterable<Int64>? repeatedInt64,
  3. Iterable<int>? repeatedUint32,
  4. Iterable<Int64>? repeatedUint64,
  5. Iterable<int>? repeatedSint32,
  6. Iterable<Int64>? repeatedSint64,
  7. Iterable<int>? repeatedFixed32,
  8. Iterable<Int64>? repeatedFixed64,
  9. Iterable<int>? repeatedSfixed32,
  10. Iterable<Int64>? repeatedSfixed64,
  11. Iterable<double>? repeatedFloat,
  12. Iterable<double>? repeatedDouble,
  13. Iterable<bool>? repeatedBool,
  14. Iterable<TestAllTypes_NestedEnum>? repeatedNestedEnum,
})

Implementation

factory TestUnpackedTypes({
  $core.Iterable<$core.int>? repeatedInt32,
  $core.Iterable<$fixnum.Int64>? repeatedInt64,
  $core.Iterable<$core.int>? repeatedUint32,
  $core.Iterable<$fixnum.Int64>? repeatedUint64,
  $core.Iterable<$core.int>? repeatedSint32,
  $core.Iterable<$fixnum.Int64>? repeatedSint64,
  $core.Iterable<$core.int>? repeatedFixed32,
  $core.Iterable<$fixnum.Int64>? repeatedFixed64,
  $core.Iterable<$core.int>? repeatedSfixed32,
  $core.Iterable<$fixnum.Int64>? repeatedSfixed64,
  $core.Iterable<$core.double>? repeatedFloat,
  $core.Iterable<$core.double>? repeatedDouble,
  $core.Iterable<$core.bool>? repeatedBool,
  $core.Iterable<TestAllTypes_NestedEnum>? repeatedNestedEnum,
}) {
  final _result = create();
  if (repeatedInt32 != null) {
    _result.repeatedInt32.addAll(repeatedInt32);
  }
  if (repeatedInt64 != null) {
    _result.repeatedInt64.addAll(repeatedInt64);
  }
  if (repeatedUint32 != null) {
    _result.repeatedUint32.addAll(repeatedUint32);
  }
  if (repeatedUint64 != null) {
    _result.repeatedUint64.addAll(repeatedUint64);
  }
  if (repeatedSint32 != null) {
    _result.repeatedSint32.addAll(repeatedSint32);
  }
  if (repeatedSint64 != null) {
    _result.repeatedSint64.addAll(repeatedSint64);
  }
  if (repeatedFixed32 != null) {
    _result.repeatedFixed32.addAll(repeatedFixed32);
  }
  if (repeatedFixed64 != null) {
    _result.repeatedFixed64.addAll(repeatedFixed64);
  }
  if (repeatedSfixed32 != null) {
    _result.repeatedSfixed32.addAll(repeatedSfixed32);
  }
  if (repeatedSfixed64 != null) {
    _result.repeatedSfixed64.addAll(repeatedSfixed64);
  }
  if (repeatedFloat != null) {
    _result.repeatedFloat.addAll(repeatedFloat);
  }
  if (repeatedDouble != null) {
    _result.repeatedDouble.addAll(repeatedDouble);
  }
  if (repeatedBool != null) {
    _result.repeatedBool.addAll(repeatedBool);
  }
  if (repeatedNestedEnum != null) {
    _result.repeatedNestedEnum.addAll(repeatedNestedEnum);
  }
  return _result;
}