preferredSize
open fun preferredSize(views: Sequence<Positionable>, min: Size, current: Size, max: Size, insets: Insets = None): Size
Determines the best size to contain the views given the constraints. The default implementation relies on layout with current = max for the answer.
Parameters
views
being contained
min
the smallest size to fit the views in
current
size to fit the views in
max
the largest size to fit the views in
insets
to apply