aspectRatio property

double? aspectRatio
final

The aspect ratio constraint (width/height).

When specified, the child's dimensions will be adjusted to maintain this aspect ratio, potentially overriding explicit width/height values.

Implementation

final double? aspectRatio;