pc<T> method Null safety

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

Implementation

void pc<T>(int tagNumber, String name, int fieldType,
    {CreateBuilderFunc? subBuilder,
    ValueOfFunc? valueOf,
    List<ProtobufEnum>? enumValues,
    ProtobufEnum? defaultEnumValue,
    String? protoName}) {
  assert(_isGroupOrMessage(fieldType) || _isEnum(fieldType));
  addRepeated<T>(tagNumber, name, fieldType, _checkNotNull, subBuilder,
      valueOf, enumValues,
      defaultEnumValue: defaultEnumValue, protoName: protoName);
}