serialize method Null safety

void serialize(
  1. ByteDataWriter writer
)
override

Implementation

void serialize(ByteDataWriter writer) {
  // Serializes a message object of type Polygon
  // Serialize message field [points]
  // Serialize the length for message field [points]
  writer.writeUint32(points.length);
  points.forEach((val) {
    val.serialize(writer);
  });
}