aspectRatio property
double
get
aspectRatio
Calculates bounding box width-to-height aspect ratio.
Implementation
double get aspectRatio {
final box = toBoundingBox();
return box.height == 0 ? 1.0 : box.width / box.height;
}