writeByte method

void writeByte(
  1. int value, {
  2. bool signed = false,
})
inherited

Write a single byte.

Implementation

void writeByte(int value, {bool signed = false}) {
  flush(1);
  signed
      ? writeByteData.setInt8(writePosition++, value)
      : writeByteData.setUint8(writePosition++, value);
}