dimensionGuard method
Implementation
void dimensionGuard(int dim) {
if (dim < MIN_DIMENSION || dim > MAX_DIMENSION) {
throw Exception('Dimensions must be in the range 1-3000');
}
}
void dimensionGuard(int dim) {
if (dim < MIN_DIMENSION || dim > MAX_DIMENSION) {
throw Exception('Dimensions must be in the range 1-3000');
}
}