ContextMenu class Null safety

Class that represents the WebView context menu. It used by WebView.contextMenu.

NOTE: To make it work properly on Android, JavaScript should be enabled!

Constructors

ContextMenu({List<ContextMenuItem> menuItems = const [], void onCreateContextMenu(InAppWebViewHitTestResult hitTestResult)?, void onHideContextMenu()?, ContextMenuOptions? options, void onContextMenuActionItemClicked(ContextMenuItem contextMenuItemClicked)?})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
List of the custom ContextMenuItem.
final
onContextMenuActionItemClicked → (void Function?(ContextMenuItem contextMenuItemClicked)?)
Event fired when a context menu item has been clicked. [...]
final
onCreateContextMenu → (void Function?(InAppWebViewHitTestResult hitTestResult)?)
Event fired when the context menu for this WebView is being built. [...]
final
onHideContextMenu → (void Function?()?)
Event fired when the context menu for this WebView is being hidden.
final
options ContextMenuOptions?
Context menu options.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited