indexOfObject$2 method

int indexOfObject$2(
  1. ObjCObject obj, {
  2. required NSRange inSortedRange,
  3. required int options,
  4. required ObjCBlock<Long Function(Pointer<ObjCObjectImpl>, Pointer<ObjCObjectImpl>)> usingComparator,
})

indexOfObject:inSortedRange:options:usingComparator:

Implementation

int indexOfObject$2(
  objc.ObjCObject obj, {
  required NSRange inSortedRange,
  required int options,
  required objc.ObjCBlock<
    ffi.Long Function(
      ffi.Pointer<objc.ObjCObjectImpl>,
      ffi.Pointer<objc.ObjCObjectImpl>,
    )
  >
  usingComparator,
}) {
  objc.checkOsVersionInternal(
    'NSArray.indexOfObject:inSortedRange:options:usingComparator:',
    iOS: (false, (4, 0, 0)),
    macOS: (false, (10, 6, 0)),
  );
  return _objc_msgSend_kshx9d(
    object$.ref.pointer,
    _sel_indexOfObject_inSortedRange_options_usingComparator_,
    obj.ref.pointer,
    inSortedRange,
    options,
    usingComparator.ref.pointer,
  );
}