dimensionsGuard method
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');
}
}