TestDynamicExtensions constructor

TestDynamicExtensions({
  1. int? scalarExtension,
  2. ForeignEnum? enumExtension,
  3. TestDynamicExtensions_DynamicEnumType? dynamicEnumExtension,
  4. ForeignMessage? messageExtension,
  5. TestDynamicExtensions_DynamicMessageType? dynamicMessageExtension,
  6. Iterable<String>? repeatedExtension,
  7. 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;
}