scale function
- double dimension
Implementation
double scale(double dimension) {
if (width == null) {
throw Exception('You must call init() before any use of scale()');
}
//
return dimension * scalingFactor;
}
double scale(double dimension) {
if (width == null) {
throw Exception('You must call init() before any use of scale()');
}
//
return dimension * scalingFactor;
}