myanmarking
.then(if (isEnabled) Modifier.clickable { onItemClicked(index) } else Modifier)
Filip Wiesner
clickable
enabled
Benoît
inline fun Modifier.thenIf(take: Boolean, other: Modifier.() -> Modifier): Modifier = if (take) then(other()) else this
Modifier.thenIf(myBoldean) { background(color).padding(12.dp) }
Zach Klippenstein (he/him) [MOD]
A modern programming language that makes developers happier.