whenTrue

abstract fun whenTrue(condition: Boolean, overrider: Styler.() -> Unit): Styler

Applies styling conditionally when the condition is true.

Return

this Styler instance for chaining

Parameters

condition

the condition to evaluate

overrider

the styling function to apply if condition is true