aspectRatio property

double get aspectRatio

Get aspect ratio

Implementation

double get aspectRatio => height == 0 ? 1 : width / height;