BooleanSwitch

@Composable
fun BooleanSwitch(state: MutableState<Boolean>, modifier: Modifier = Modifier)

A composable function that displays a Switch tied to the given Boolean value.

Parameters

state

The mutable state of the Boolean value.

modifier

The modifier to be applied to the Switch composable.