TestDynamicExtensions constructor
TestDynamicExtensions({
- int? scalarExtension,
- ForeignEnum? enumExtension,
- TestDynamicExtensions_DynamicEnumType? dynamicEnumExtension,
- ForeignMessage? messageExtension,
- TestDynamicExtensions_DynamicMessageType? dynamicMessageExtension,
- Iterable<
String> ? repeatedExtension, - Iterable<
int> ? packedExtension,
Implementation
factory TestDynamicExtensions({
$core.int? scalarExtension,
ForeignEnum? enumExtension,
TestDynamicExtensions_DynamicEnumType? dynamicEnumExtension,
ForeignMessage? messageExtension,
TestDynamicExtensions_DynamicMessageType? dynamicMessageExtension,
$core.Iterable<$core.String>? repeatedExtension,
$core.Iterable<$core.int>? packedExtension,
}) {
final _result = create();
if (scalarExtension != null) {
_result.scalarExtension = scalarExtension;
}
if (enumExtension != null) {
_result.enumExtension = enumExtension;
}
if (dynamicEnumExtension != null) {
_result.dynamicEnumExtension = dynamicEnumExtension;
}
if (messageExtension != null) {
_result.messageExtension = messageExtension;
}
if (dynamicMessageExtension != null) {
_result.dynamicMessageExtension = dynamicMessageExtension;
}
if (repeatedExtension != null) {
_result.repeatedExtension.addAll(repeatedExtension);
}
if (packedExtension != null) {
_result.packedExtension.addAll(packedExtension);
}
return _result;
}