readUnknownFieldSetGroup method Null safety

UnknownFieldSet readUnknownFieldSetGroup(
  1. int fieldNumber
)

Implementation

UnknownFieldSet readUnknownFieldSetGroup(int fieldNumber) {
  if (_recursionDepth >= _recursionLimit) {
    throw InvalidProtocolBufferException.recursionLimitExceeded();
  }
  ++_recursionDepth;
  var unknownFieldSet = UnknownFieldSet();
  unknownFieldSet.mergeFromCodedBufferReader(this);
  checkLastTagWas(makeTag(fieldNumber, WIRETYPE_END_GROUP));
  --_recursionDepth;
  return unknownFieldSet;
}