isBool property Null safety

bool isBool

is the Byte a boolean

Implementation

bool get isBool => _number == 0 || _number == 1;