Modifier to make it easy to conditionally add a modifier based on value
Box( modifier = Modifier.fillMaxWidth() .ifTrue(isError) { background(SparkTheme.colors.error) } .padding(16.dp) ) {...}
condition to decide if the chain is added or not to the modifier chain
the modifier(s) to apply when value is true