conditional
fun Modifier.conditional(condition: Boolean, modifierScope: Modifier.() -> Modifier): Modifier
Content copied to clipboard
An extension function that can be used to conditionally chain a modifier.
Parameters
condition
the condition based on which the modifier will be chained/not chained.
modifier Scope
a lambda with an instance of Modifier as receiver.