isCubeTextureComplete method

dynamic isCubeTextureComplete(
  1. dynamic image
)

Implementation

isCubeTextureComplete(image) {
  var count = 0;
  var length = 6;

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

  return count == length;
}