addMenuItem
fun addMenuItem(id: String, label: String, leadingIcon: IconSchema? = null, trailingIcon: IconSchema? = null)
Declares one entry of a Menu's dropdown.
Parameters
id
Identifier carried by onMenuItemClick when this item is tapped, so events can be wired per item.
label
Text shown for this item.
leadingIcon
Optional icon rendered before the label. Defaults to none.
trailingIcon
Optional icon rendered after the label. Defaults to none.