Just select an HTML element(body, for example), and call the onContextMenu getter on it:
body
onContextMenu
web.window.document.querySelector('body')?.onContextMenu.listen((event) {});