ifTrue

inline fun Modifier.ifTrue(predicate: Boolean, builder: Modifier.() -> Modifier): Modifier(source)

Extension function to apply changes to a Modifier if a predicate is matched.

Return

Modifier with or without changes depending on the predicate

Parameters

predicate

which should be matched

builder

apply changes to the given Modifier