openContextMenu method

void openContextMenu({
  1. required Offset position,
  2. VSOutputData? outputData,
})

Opens the context menu at a given postion

If the context menu was opened through a reference it will also be passed

Implementation

void openContextMenu({
  required Offset position,
  VSOutputData? outputData,
}) {
  _contextMenuContext = ContextMenuContext(
    offset: applyViewPortTransfrom(position),
    reference: outputData,
  );
  notifyListeners();
}