SwitchPreferenceItem

fun SwitchPreferenceItem(modifier: Modifier = Modifier, icon: ImageVector? = null, title: String, summary: String? = null, checked: Boolean, onCheckedChange: (Boolean) -> Unit, ga4Event: Ga4EventData? = null)(source)

Switch preference with caller-owned checked state. Row and switch taps emit onCheckedChange; callers handle persistence. Use summary to explain the setting's effect.