aspectRatio property

num? aspectRatio
final

For automatically calculated width and height on images, it is possible to set an aspect ratio. The image will be zoomed to fill the bounding box, maintaining the aspect ratio defined.

Implementation

final num? aspectRatio;