Function

takeOrElse

If isSpecified is true 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

takeOrElse

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

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


takeOrElse

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

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


takeOrElse

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

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


takeOrElse

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

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