menu
rohd_hcl
rohd_hcl.dart
isPowerOfTwo function
isPowerOfTwo
dark_mode
light_mode
isPowerOfTwo
function
bool
isPowerOfTwo
(
int
n
)
Returns whether
n
is a power of two.
Implementation
bool isPowerOfTwo(int n) => n != 0 && (n & (n - 1) == 0);
rohd_hcl
rohd_hcl
isPowerOfTwo function
rohd_hcl library