operator []= method
Sets the boolean value at the given index
Implementation
void operator []=(int index, bool value) {
if (index < 0 || index >= length) return;
final word = index >> 5;
final bit = index & 31;
if (value) {
_data[word] |= (1 << bit);
} else {
_data[word] &= ~(1 << bit);
}
}