toBytes method
Implementation
@override
Uint8List toBytes() {
//3.2.1 General conventions: All integers are sent low byte first and are considered unsigned integers unless otherwise specified.
return combineTwoLists(
value.toBytes(fillBytes: _byteLength - 1, endian: Endian.little),
Uint8List.fromList([unit.value]));
}