aspectRatio property
double
get
aspectRatio
Aspect ratio of the rectangle (always >= 1.0)
Implementation
double get aspectRatio => width >= height ? width / height : height / width;
Aspect ratio of the rectangle (always >= 1.0)
double get aspectRatio => width >= height ? width / height : height / width;