pack method
Corresponding parser should be called from frame_app data handler
Implementation
@override
Uint8List pack() {
int widthMsb = _width >> 8;
int widthLsb = _width & 0xFF;
int lineHeightMsb = _lineHeight >> 8;
int lineHeightLsb = _lineHeight & 0xFF;
// special marker for Block header 0xFF, width of the block, max display rows, num lines, offsets within block for each line
return Uint8List.fromList([
0xFF,
widthMsb,
widthLsb,
lineHeightMsb,
lineHeightLsb,
_maxDisplayLines & 0xFF
]);
}