Switch Row
fun SwitchRow(title: String, checked: Boolean, onCheckedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, subtitle: String? = null, enabled: Boolean = true, leadingContent: @Composable () -> Unit? = null)
Fila de ajustes con un interruptor: título, subtítulo opcional y Switch a la derecha. Toda la fila es pulsable y accesible.
Parameters
title
Título de la opción.
checked
Estado del interruptor.
on Checked Change
Callback al cambiar el estado.
subtitle
Descripción secundaria opcional.
enabled
Si false, deshabilita la fila entera.
leading Content
Contenido opcional al inicio (icono, avatar...).