MenuItem
data class MenuItem(val id: MenuItem.Id, val icon: DrawableResolver, val label: StringResolver) : Parcelable
Represents a MenuItem with an icon and a text label.
Parameters
id
A unique identifier for this menu item.
icon
A DrawableResolver that returns this menu item's icon. The provided icon can make use of a StateListDrawable to support different states, such as state_selected
for when the menu item is selected.
label
A StringResolver that returns this menu item's label.