ToggleSwitch

fun ToggleSwitch(isChecked: Boolean, onCheckedChange: (Boolean) -> Unit?, modifier: <Error class: unknown class> = Modifier, enabled: Boolean = true)

A themed toggle (switch) according to the AnsaTheme established.

Parameters

modifier

The modifier to be applied to the toggle.

isChecked

Whether or not the toggle is checked.

onCheckedChange

callback to be invoked when the Toggle is being clicked, therefore the change of checked state is requested.