TestNestedGroupExtensionOuter_Layer1OptionalGroup constructor
TestNestedGroupExtensionOuter_Layer1OptionalGroup({
- Iterable<
TestNestedGroupExtensionOuter_Layer1OptionalGroup_Layer2RepeatedGroup> ? layer2RepeatedGroup, - Iterable<
TestNestedGroupExtensionOuter_Layer1OptionalGroup_Layer2AnotherOptionalRepeatedGroup> ? layer2AnotherOptionalRepeatedGroup,
Implementation
factory TestNestedGroupExtensionOuter_Layer1OptionalGroup({
$core.Iterable<
TestNestedGroupExtensionOuter_Layer1OptionalGroup_Layer2RepeatedGroup>?
layer2RepeatedGroup,
$core.Iterable<
TestNestedGroupExtensionOuter_Layer1OptionalGroup_Layer2AnotherOptionalRepeatedGroup>?
layer2AnotherOptionalRepeatedGroup,
}) {
final _result = create();
if (layer2RepeatedGroup != null) {
_result.layer2RepeatedGroup.addAll(layer2RepeatedGroup);
}
if (layer2AnotherOptionalRepeatedGroup != null) {
_result.layer2AnotherOptionalRepeatedGroup
.addAll(layer2AnotherOptionalRepeatedGroup);
}
return _result;
}