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;
}