FitFileHeader class

Constructors

FitFileHeader({required int recordsSize, ProtocolVersion? protocolVersion, ProfileVersion? profileVersion, int? crc, bool genCrc = false})

Properties

crc int?
By including the CRC in the header you effectively reset the CRC for the file, (when you CRC-16 a value with itself the CRC returned is 0)
final
hashCode int
The hash code for this object.
no setterinherited
profileVersion ProfileVersion
final
protocolVersion ProtocolVersion
final
recordsSize int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() Uint8List
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromBytes(Uint8List bytes) FitFileHeader
generateCrc(ProtocolVersion protocolVersion, ProfileVersion profileVersion, int recordsSize) int