$setBool method Null safety

void $setBool(
  1. bool on
)

Implementation

void $setBool(bool on) {
	final int index = _boolsBitNumber ~/ 8;
	if (index >= $flags.length) $flags.add(0);
	if (on) $flags[index] |= 1 << (_boolsBitNumber % 8);
	_boolsBitNumber++;
}