popupMenuItem

Creates a PopupMenuItem using a string resource for the text.

Return

A PopupMenuItemImpl with the resolved text and action.

Parameters

textId

The string resource ID for the menu item text.

action

The action to perform when the menu item is clicked.