Menu Item Data
constructor(id: T, label: String, state: MenuItemState = MenuItemState.ENABLED, style: MenuItemStyle = MenuItemStyle.DEFAULT, leadingElement: MenuLeadingElement? = null, trailingElement: MenuTrailingElement? = null, supportingText: String? = null, showDivider: Boolean = false)
Parameters
label
: controls the text to be shown.
state
: controls the MenuItem state.
style
: controls the MenuItem style.
leading Element
: controls the MenuLeadingElement.
trailing Element
: controls the MenuTrailingElement.
supporting Text
: controls the supporting text to be shown.
show Divider
: controls whether a divider should be shown.