serialize method Null safety

void serialize(
  1. ByteDataWriter writer
)
override

Implementation

void serialize(ByteDataWriter writer) {
  // Serializes a message object of type Point
  // Serialize message field [x]
  writer.writeFloat64(x);
  // Serialize message field [y]
  writer.writeFloat64(y);
  // Serialize message field [z]
  writer.writeFloat64(z);
}