toggleableItem

abstract fun toggleableItem(checked: Boolean, onCheckedChange: (Boolean) -> Unit, icon: @Composable () -> Unit, label: String, enabled: Boolean = true)

Adds a toggleable item to the AppBarRow or AppBarColumn.

Parameters

checked

Whether the item is currently checked.

onCheckedChange

The action to perform when the item's checked state changes.

icon

The composable representing the item's icon.

enabled

Whether the item is enabled.

label

The text label for the item, used in the overflow menu.