SwitchCardItem
fun SwitchCardItem(modifier: Modifier = Modifier, icon: ImageVector? = null, title: String, enabled: Boolean = true, switchState: State<Boolean>, onSwitchToggled: (Boolean) -> Unit, checkIcon: ImageVector = Icons.Filled.Check, ga4Event: Ga4EventData? = null, ga4EventProvider: (Boolean) -> Ga4EventData?? = null)(source)
Switch card with caller-owned switchState. Card and switch taps emit onSwitchToggled; callers handle persistence. title supplies the primary label.
Parameters
ga4EventProvider
Resolves analytics from the toggled value at interaction time, taking precedence over ga4Event when it returns an event.