ChromeContextMenus class

Properties

actionMenuTopLevelLimit int
The maximum number of top level extension items that can be added to an extension action context menu. Any items beyond this limit will be ignored.
no setter
hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onClicked EventStream<OnClickedEvent>
Fired when a context menu item is clicked.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(CreateProperties createProperties, JSFunction? callback) Object
Creates a new context menu item. If an error occurs during creation, it may not be detected until the creation callback fires; details will be in runtime.lastError. callback Called when the item has been created in the browser. If an error occurs during creation, details will be available in runtime.lastError. returns The ID of the newly created item.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(Object menuItemId) Future<void>
Removes a context menu item. menuItemId The ID of the context menu item to remove. returns Called when the context menu has been removed.
removeAll() Future<void>
Removes all context menu items added by this extension. returns Called when removal is complete.
toString() String
A string representation of this object.
inherited
update(Object id, UpdateProperties updateProperties) Future<void>
Updates a previously created context menu item. id The ID of the item to update. updateProperties The properties to update. Accepts the same values as the contextMenus.create function. returns Called when the context menu has been updated.

Operators

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