🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

setValue

Permits property delegation of vars using by for MutableDoubleState.

DelegatedStateSample

@Suppress("ReplaceWithOperatorAssignment")
@Sampled
@Composable
fun DelegatedStateSample() {
    var count by remember { mutableStateOf(0) }

    Text(text = "You clicked $count times")
    Button(onClick = { count = count + 1 }) { Text("Click me") }
}

private class Subscription {