preferredAxis property

Axis? preferredAxis
final

The preferred axis.

When both dimensions have preferred value, one will have higher priority. If the preferred axis is Axis.vertical and child size seems to be stable (e.g. has the same aspect ratio regardless of layout constraints) the preferredHeight will be used for sizing.

By default (null preferred axis), preferredWidth will be used.

Implementation

final Axis? preferredAxis;