MenuItemData

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.

leadingElement

: controls the MenuLeadingElement.

trailingElement

: controls the MenuTrailingElement.

supportingText

: controls the supporting text to be shown.

showDivider

: controls whether a divider should be shown.