squash property

double squash
final

How much of the aspect ratio of the attached widget to take on.

If squash is non-zero, the border will match the aspect ratio of the bounding box of the widget that it is attached to, which can give a squashed appearance.

The squash parameter lets you control how much of that aspect ratio this border takes on.

A value of zero means that the border will be drawn with a square aspect ratio at the size of the shortest side of the bounding rectangle, ignoring the aspect ratio of the widget, and a value of one means it will be drawn with the aspect ratio of the widget. The value of squash has no effect if the widget is square to begin with.

Defaults to zero, and must be between zero and one, inclusive.

Implementation

final double squash;