writeTo method Null safety

void writeTo(
  1. int fieldNumber,
  2. CodedBufferWriter output
)

Implementation

void writeTo(int fieldNumber, CodedBufferWriter output) {
  void write(type, value) {
    output.writeField(fieldNumber, type, value);
  }

  write(PbFieldType._REPEATED_UINT64, varints);
  write(PbFieldType._REPEATED_FIXED32, fixed32s);
  write(PbFieldType._REPEATED_FIXED64, fixed64s);
  write(PbFieldType._REPEATED_BYTES, lengthDelimited);
  write(PbFieldType._REPEATED_GROUP, groups);
}