takeOrElse

Function

Common
inline fun Size.takeOrElse(block: () -> Size): Size

If this Size isSpecified then this is returned, otherwise block is executed and its result is returned.

Common
inline fun Offset.takeOrElse(block: () -> Offset): Offset

If this Offset isSpecified then this is returned, otherwise block is executed and its result is returned.