trailingZeroBits property

int get trailingZeroBits

The number of trailing zero bits in the binary representation.

Implementation

int get trailingZeroBits {
  final bits = _converter.bits;
  if (bits == 0) return 64;
  int count = 0;
  int value = bits;
  while ((value & 1) == 0) {
    count++;
    value >>= 1;
  }
  return count;
}