hitTest method

UIView? hitTest(
  1. CGPoint point, {
  2. UIEvent? withEvent,
})

hitTest:withEvent:

Implementation

UIView? hitTest(objc.CGPoint point, {UIEvent? withEvent}) {
  objc.checkOsVersionInternal('UIView.hitTest:withEvent:', iOS: (false, (2, 0, 0)));
  final $ret = _objc_msgSend_u7nfz8(
    object$.ref.pointer,
    _sel_hitTest_withEvent_,
    point,
    withEvent?.ref.pointer ?? ffi.nullptr,
  );
  return $ret.address == 0 ? null : UIView.fromPointer($ret, retain: true, release: true);
}