contextMenu constant
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.
Implementation
static const MethodChannel contextMenu = OptionalMethodChannel(
'flutter/contextmenu',
JSONMethodCodec(),
);