setBool method

void setBool(
  1. int index,
  2. bool value
)

Writes the value as a single byte using 0xFF as true and 0x00 as false at index.

Implementation

void setBool(int index, bool value) => setByte(index, value ? 0xFF : 0x00);