indexesWithOptions method

NSIndexSet indexesWithOptions(
  1. int opts, {
  2. required ObjCBlock<Bool Function(UnsignedLong, Pointer<Bool>)> passingTest,
})

indexesWithOptions:passingTest:

Implementation

NSIndexSet indexesWithOptions(
  int opts, {
  required objc.ObjCBlock<
    ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)
  >
  passingTest,
}) {
  objc.checkOsVersionInternal(
    'NSIndexSet.indexesWithOptions:passingTest:',
    iOS: (false, (4, 0, 0)),
    macOS: (false, (10, 6, 0)),
  );
  final $ret = _objc_msgSend_13x5boi(
    object$.ref.pointer,
    _sel_indexesWithOptions_passingTest_,
    opts,
    passingTest.ref.pointer,
  );
  return NSIndexSet.fromPointer($ret, retain: true, release: true);
}