decodeBoolOrNull method
Decodes the data as a nullable boolean value.
Implementation
@override
bool? decodeBoolOrNull() {
skipWhitespace();
switch (buffer[_offset]) {
case tokenT:
_offset += 4;
return true;
case tokenF:
_offset += 5;
return false;
case tokenN:
_offset += 4;
return null;
default:
expect('bool or null');
}
}