Checkable Item
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.
is Enabled
Determines if the checkable item is enabled. Defaults to true.
on Toggle
A lambda function to handle the toggle action. The new checked state is passed as a parameter.