dimensionsGuard method

void dimensionsGuard(
  1. int width,
  2. int height
)

Implementation

void dimensionsGuard(int width, int height) {
  dimensionGuard(width);
  dimensionGuard(height);

  if (width > MAX_DIMENSION && height > MAX_DIMENSION) {
    throw Exception('At least one dimension must be less than 3000');
  }
}