$getFlag method Null safety

bool $getFlag()

Implementation

bool $getFlag() {
	final int index = _flagsBitNumber ~/ 8;
	final bool result = ($flags[index] >> (_flagsBitNumber % 8)) & 1 == 1;
	_flagsBitNumber++;
	return result;
}