writeToBuffer method Null safety

Uint8List writeToBuffer()

Implementation

Uint8List writeToBuffer() {
  var out = CodedBufferWriter();
  writeToCodedBufferWriter(out);
  return out.toBuffer();
}