write method
Implementation
void write(EndianBinaryWriter writer) {
writer.writeByte(size);
writer.writeByte(protocolVersion);
writer.writeUInt16(profileVersion);
writer.writeUInt32(dataSize);
writer.writeBytes(Uint8List.fromList(utf8.encode(_dataType)));
if (size == Fit.headerWithCrcSize) {
writer.writeUInt16(crc);
}
}