aspectRatio property
Implementation
double get aspectRatio {
if (width == 0 || height == 0) {
return 1;
}
return isPortrait ? height / width : width / height;
}
double get aspectRatio {
if (width == 0 || height == 0) {
return 1;
}
return isPortrait ? height / width : width / height;
}