readBool method Null safety

bool readBool()

Reads a bool from the stream

Implementation

bool readBool() {
  return read(bits: 1) == 1;
}