aspectRatio property
double
get
aspectRatio
Implementation
double get aspectRatio {
if (height != 0.0) return width / height;
if (width > 0.0) return double.infinity;
if (width < 0.0) return double.negativeInfinity;
return 0.0;
}