isPowerOfTwo method

bool isPowerOfTwo(
  1. dynamic image
)

Implementation

bool isPowerOfTwo(image) {
  return MathUtils.isPowerOfTwo(image.width.toInt()) &&
      MathUtils.isPowerOfTwo(image.height.toInt());
}