takeOrElse

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

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


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

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


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