showContextMenuForSelection method

void showContextMenuForSelection(
  1. ObjCObjectBase? sender
)

showContextMenuForSelection:

Implementation

void showContextMenuForSelection(objc.ObjCObjectBase? sender) {
  objc.checkOsVersionInternal(
    'NSResponder.showContextMenuForSelection:',
    iOS: (true, null),
    macOS: (false, (15, 0, 0)),
  );
  if (!objc.respondsToSelector(
    this.ref.pointer,
    _sel_showContextMenuForSelection_,
  )) {
    throw objc.UnimplementedOptionalMethodException(
      'NSResponder',
      'showContextMenuForSelection:',
    );
  }
  _objc_msgSend_xtuoz7(
    this.ref.pointer,
    _sel_showContextMenuForSelection_,
    sender?.ref.pointer ?? ffi.nullptr,
  );
}