addMenuItem method

  1. @override
void addMenuItem(
  1. ChromeSafariBrowserMenuItem menuItem
)

Adds a ChromeSafariBrowserMenuItem to the menu.

NOTE: Not available in an Android Trusted Web Activity.

Officially Supported Platforms/Implementations:

  • Android
  • iOS

Implementation

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