packBool method
Pack bool or null
.
Implementation
// ignore: avoid_positional_boolean_parameters
void packBool(bool? v) {
if (_buf.length - _offset < 1) _nextBuf();
if (v == null) {
_d.setUint8(_offset++, 0xc0);
} else {
_d.setUint8(_offset++, v ? 0xc3 : 0xc2);
}
}