aspectRatio property

num aspectRatio

Gets or sets the ratio of the arrangement's height to its width (1 for a circle, >1 for a vertically elongated ellipse).

This is 1 by default. The value must be a positive number.

Modifying this value changes the height, but keeps the width and the #radius constant.

Implementation

_i2.num get aspectRatio => _i4.getProperty(
      this,
      'aspectRatio',
    );
void aspectRatio=(num value)

Implementation

set aspectRatio(_i2.num value) {
  _i4.setProperty(
    this,
    'aspectRatio',
    value,
  );
}