ToggleOption
A data class representing a toggle option.
Usage example:
val themeOptions = listOf(
ToggleOption(text = R.string.light_theme, icon = Icons.Default.LightMode),
ToggleOption(text = R.string.dark_theme, icon = Icons.Default.DarkMode),
ToggleOption(text = R.string.system_theme, icon = Icons.Default.Settings),
)Content copied to clipboard
Parameters
text
The string resource ID for the text to display for the option.
icon
The icon to display for the option.