scaleToHeight method

Rect scaleToHeight(
  1. double height
)

Scale so the new height equals height; aspect preserved, center fixed.

Implementation

Rect scaleToHeight(double height) => scale(height / this.height);