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