readBoolOrNull method

bool? readBoolOrNull(
  1. int offset, {
  2. bool staticOffset = true,
})

Implementation

@pragma('vm:prefer-inline')
bool? readBoolOrNull(int offset, {bool staticOffset = true}) {
  if (staticOffset && offset >= _staticSize) return null;
  final value = _buffer[offset];
  if (value == trueBool) {
    return true;
  } else if (value == falseBool) {
    return false;
  }
}