addMenuItem method

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

Adds a InAppBrowserMenuItem to the menu. If the browser is already open, it will take effect the next time it is opened.

Officially Supported Platforms/Implementations:

  • Android
  • iOS 14.0+
  • macOS 10.15+

Implementation

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