scale method

Bounds scale(
  1. double factor
)

Scales the bounds by a factor.

Implementation

Bounds scale(double factor) {
  return Bounds(
    x: x * factor,
    y: y * factor,
    width: width * factor,
    height: height * factor,
  );
}