scaleSize method

Size scaleSize(
  1. double widthFactor,
  2. double heightFactor
)

Returns a new size with the width and height scaled by the given factors.

Implementation

Size scaleSize(double widthFactor, double heightFactor) {
  return Size(width * widthFactor, height * heightFactor);
}