TestUnpackedTypes constructor
TestUnpackedTypes({
- Iterable<
int> ? repeatedInt32, - Iterable<
Int64> ? repeatedInt64, - Iterable<
int> ? repeatedUint32, - Iterable<
Int64> ? repeatedUint64, - Iterable<
int> ? repeatedSint32, - Iterable<
Int64> ? repeatedSint64, - Iterable<
int> ? repeatedFixed32, - Iterable<
Int64> ? repeatedFixed64, - Iterable<
int> ? repeatedSfixed32, - Iterable<
Int64> ? repeatedSfixed64, - Iterable<
double> ? repeatedFloat, - Iterable<
double> ? repeatedDouble, - Iterable<
bool> ? repeatedBool, - 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;
}