writeBoolean method

int writeBoolean(
  1. bool b
)

Writes 1 boolean byte. Increments position by 1.

Implementation

int writeBoolean(bool b) => writeByte(b ? 1 : 0);