aspectRatio property

double get aspectRatio

Aspect ratio of the rectangle (always >= 1.0)

Implementation

double get aspectRatio => width >= height ? width / height : height / width;