addField method Null safety

void addField(
  1. int number,
  2. UnknownFieldSetField field
)

Implementation

void addField(int number, UnknownFieldSetField field) {
  _ensureWritable('addField');
  _checkFieldNumber(number);
  _fields[number] = field;
}