bitCount method
Returns the number of set bits in this integer's binary representation.
Implementation
int bitCount() => toBinaryString().replaceAll('0', '').length;
Returns the number of set bits in this integer's binary representation.
int bitCount() => toBinaryString().replaceAll('0', '').length;