aspectRatio property
double?
get
aspectRatio
Returns the aspect ratio (width / height) if dimensions are known.
Implementation
double? get aspectRatio {
if (width != null && height != null && height! > 0) {
return width! / height!;
}
return null;
}