boolValue property Null safety

bool? boolValue

The boolean value (if the byte is no boolean then null)

Implementation

bool? get boolValue => _number == 0
    ? false
    : _number == 1
        ? true
        : null;