plusIf

inline fun plusIf(condition: Boolean, styleProvider: () -> Style): Style

Appends styleProvider to the current style if condition is true.

Return

this if condition is false or this + styleProvider when condition is true.