writeBool method Null safety

void writeBool(
  1. bool input
)

Writes a bool to the stream

Implementation

void writeBool(bool input) {
  write((input ? 1 : 0), bits: 1);
}