addRepeated<T> method Null safety

void addRepeated<T>(
  1. int tagNumber,
  2. String name,
  3. int fieldType,
  4. CheckFunc<T> check,
  5. CreateBuilderFunc? subBuilder,
  6. ValueOfFunc? valueOf,
  7. List<ProtobufEnum>? enumValues,
  8. {ProtobufEnum? defaultEnumValue,
  9. String? protoName}
)

Implementation

void addRepeated<T>(
    int tagNumber,
    String name,
    int fieldType,
    CheckFunc<T> check,
    CreateBuilderFunc? subBuilder,
    ValueOfFunc? valueOf,
    List<ProtobufEnum>? enumValues,
    {ProtobufEnum? defaultEnumValue,
    String? protoName}) {
  var index = byIndex.length;
  _addField(FieldInfo<T>.repeated(
      name, tagNumber, index, fieldType, check, subBuilder,
      valueOf: valueOf,
      enumValues: enumValues,
      defaultEnumValue: defaultEnumValue,
      protoName: protoName));
}