resize method

Rect resize(
  1. double width,
  2. double height
)

Same center, new size. Aspect may change.

Implementation

Rect resize(double width, double height) =>
    Rect.fromCenter(center: center, width: width, height: height);