Zoltan Demant
Modifier factory functions must use the receiver Modifier instance
this then modifier
private fun Modifier.interactions( onClick: (() -> Unit)?, ): Modifier { return when { onClick != null -> clickable( onClick = onClick, ) else -> pointerInput(Unit) {} } }
ephemient
this then
Modifier
this then when { onClick != null -> Modifier.clickable(...) ...
A modern programming language that makes developers happier.