p<T> method Null safety

void p<T>(
  1. int tagNumber,
  2. String name,
  3. int fieldType,
  4. {String? protoName}
)

Implementation

void p<T>(int tagNumber, String name, int fieldType, {String? protoName}) {
  assert(!_isGroupOrMessage(fieldType) && !_isEnum(fieldType));
  addRepeated<T>(tagNumber, name, fieldType, getCheckFunction(fieldType),
      null, null, null,
      protoName: protoName);
}