toggleableItem
abstract fun toggleableItem(checked: Boolean, label: String, onCheckedChange: (Boolean) -> Unit, icon: @Composable () -> Unit? = null, weight: Float = Float.NaN, enabled: Boolean = true)
Adds a toggleable item to the ButtonGroup.
Parameters
checked
Whether the item is currently checked.
onCheckedChange
The action to perform when the item's checked state changes.
icon
An optional composable representing the item's icon.
enabled
Whether the item is enabled.
weight
the weight to be applied to this item, please see ButtonGroupScope.weight
label
The text label for the item.