setContextMenu method

Future<void> setContextMenu(
  1. ContextMenu? contextMenu
)

Sets or updates the WebView context menu to be used next time it will appear.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS

Implementation

Future<void> setContextMenu(ContextMenu? contextMenu) =>
    platform.setContextMenu(contextMenu);