scale method

Rect scale(
  1. double factor
)

Proportionally scales the Rect by the factor.

Implementation

Rect scale(double factor) => Rect.fromLTWH(
      left * factor,
      top * factor,
      width * factor,
      height * factor,
    );