Function

takeOrElse

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Source set: Common

Added in 1.11.0-rc01

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

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

Source set: Common

Added in 1.11.0-rc01

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

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