contextMenu constant

MethodChannel const contextMenu

A MethodChannel for configuring the browser's context menu on web.

The following outgoing methods are defined for this channel (invoked using OptionalMethodChannel.invokeMethod):

  • enableContextMenu: enables the browser's context menu. When a Flutter app starts, the browser's context menu is already enabled.
  • disableContextMenu: disables the browser's context menu.


static const MethodChannel contextMenu = OptionalMethodChannel(