onContextMenu method

WidgetElementVisible onContextMenu(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)
inherited

The contextmenu event fires when the user attempts to open a context menu. Read more...

Implementation

WidgetElementVisible onContextMenu(Function(Element, Event)? fun) {
  if (fun != null) on.call('contextmenu', fun);
  return this;
}