aspectRatio property

double? aspectRatio
getter/setter pair

The aspect ratio of this image (width and height).

This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image.

Implementation

core.double? aspectRatio;