This class is used by the PopupMenu class to hold the data for each item in the menu. There are several different types of menu items, each different item has a separate constructor in this class. To create a new item of a particular type, a new PopupMenuItem instance is created, using the relevant constructor. The different types of items are described below.