ratio method

double ratio(
  1. double cx,
  2. double cy
)

Implementation

double ratio(double cx, double cy) => Size(cx, cy).aspectRatio;