Function

takeOrElse

If this color 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

takeOrElse

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

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