CheckableItem

abstract fun CheckableItem(label: String, checked: Boolean = false, isEnabled: Boolean = true, onToggle: (Boolean) -> Unit)

Adds a checkable item to the tray menu.

Parameters

label

The text label for the checkable menu item.

checked

Indicates the initial checked state of the item. Defaults to false.

isEnabled

Determines if the checkable item is enabled. Defaults to true.

onToggle

A lambda function to handle the toggle action. The new checked state is passed as a parameter.