thenIf

fun Modifier.thenIf(condition: Boolean, action: Modifier.() -> Modifier): Modifier

Concatenate the result of action if condition is true, otherwise return the receiver Modifier untouched.