bitCeil property

int bitCeil

Returns the power of 2 that is greater or equal to this unsigned 32-bit integer.

Implementation

int get bitCeil => this <= 1 ? 1 : 1 << (this - 1).bitLength;