aspectRatio property
double
get
aspectRatio
Get aspect ratio
Implementation
double get aspectRatio => height == 0 ? 1 : width / height;
Get aspect ratio
double get aspectRatio => height == 0 ? 1 : width / height;