preferredSize
open fun IntrinsicMeasureScope.preferredSize(measurables: List<IntrinsicMeasurable>, assignedWidth: Int?): Dimension
Returns the preferred size of this container for Swing's getPreferredSize(). assignedWidth is the inner width Swing has set on the container, or null where it has no positive width to offer, which includes every container under a Foundation parent; use it for height-for-width. The result excludes insets and paint outsets, which the container adds, and must be nonnegative, or getPreferredSize() throws IllegalArgumentException. Minimum size reads do not call this; they use the minimum intrinsic functions.
The default returns the natural maximum intrinsic width and the maximum intrinsic height at assignedWidth if positive, or at the natural width otherwise.