scale function

double scale (
  1. double dimension
)

Implementation

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