aspectRatio property

double get aspectRatio

Aspect ratio, which is useful for sizing a box around the animation.

Implementation

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