addMenuItem method

void addMenuItem(
  1. ChromeSafariBrowserMenuItem menuItem
)

Adds a ChromeSafariBrowserMenuItem to the menu.

NOTE: Not available in an Android Trusted Web Activity.

Implementation

void addMenuItem(ChromeSafariBrowserMenuItem menuItem) {
  this._menuItems[menuItem.id] = menuItem;
}