Writes the value as a single byte using 0xFF as true and 0x00 as false at index.
value
index
void setBool(int index, bool value) => setByte(index, value ? 0xFF : 0x00);