alignWithin

fun alignWithin(other: Rect, target: Size): Position

Returns the Position which can be used to properly align a boundable with target size withinother.

Sources

(source)
Link copied to clipboard