ContextMenu class

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(dynamic hitTestResult)?, void onHideContextMenu()?, ContextMenuOptions? options, void onContextMenuActionItemClicked(ContextMenuItem contextMenuItemClicked)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
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(dynamic 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.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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