TestVerifyMostlyInt32 constructor

TestVerifyMostlyInt32({
  1. int? optionalInt321,
  2. int? optionalInt322,
  3. int? optionalInt323,
  4. int? optionalInt324,
  5. TestAllTypes? optionalAllTypes,
  6. Iterable<TestAllTypes>? repeatedAllTypes,
  7. Int64? optionalInt6430,
  8. int? optionalInt3263,
  9. int? optionalInt3264,
})

Implementation

factory TestVerifyMostlyInt32({
  $core.int? optionalInt321,
  $core.int? optionalInt322,
  $core.int? optionalInt323,
  $core.int? optionalInt324,
  TestAllTypes? optionalAllTypes,
  $core.Iterable<TestAllTypes>? repeatedAllTypes,
  $fixnum.Int64? optionalInt6430,
  $core.int? optionalInt3263,
  $core.int? optionalInt3264,
}) {
  final _result = create();
  if (optionalInt321 != null) {
    _result.optionalInt321 = optionalInt321;
  }
  if (optionalInt322 != null) {
    _result.optionalInt322 = optionalInt322;
  }
  if (optionalInt323 != null) {
    _result.optionalInt323 = optionalInt323;
  }
  if (optionalInt324 != null) {
    _result.optionalInt324 = optionalInt324;
  }
  if (optionalAllTypes != null) {
    _result.optionalAllTypes = optionalAllTypes;
  }
  if (repeatedAllTypes != null) {
    _result.repeatedAllTypes.addAll(repeatedAllTypes);
  }
  if (optionalInt6430 != null) {
    _result.optionalInt6430 = optionalInt6430;
  }
  if (optionalInt3263 != null) {
    _result.optionalInt3263 = optionalInt3263;
  }
  if (optionalInt3264 != null) {
    _result.optionalInt3264 = optionalInt3264;
  }
  return _result;
}