thenIfNotNull
fun <T> Modifier.thenIfNotNull(value: T?, ifNotNullModifier: (T) -> Modifier, ifNullModifier: Modifier = Modifier): Modifier
Applies either the ifNotNullModifier or the ifNullModifier depending on the value.
Since
0.2.0