isCubeTextureComplete method

bool isCubeTextureComplete(
  1. dynamic image
)

Implementation

bool isCubeTextureComplete(image) {
  int count = 0;
  const length = 6;

  for (int i = 0; i < length; i++) {
    if (image[i] != null) count++;
  }

  return count == length;
}