takeOrElse

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

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


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

If this text style isSpecifiedTextStyle then this is returned, otherwise block is executed and its result is returned.