indexesInRange method

NSIndexSet indexesInRange(
  1. NSRange range, {
  2. required NSEnumerationOptions options,
  3. required ObjCBlock<Bool Function(UnsignedLong, Pointer<Bool>)> passingTest,
})

indexesInRange:options:passingTest:

Implementation

NSIndexSet indexesInRange(
  NSRange range, {
  required NSEnumerationOptions options,
  required objc.ObjCBlock<
    ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer<ffi.Bool>)
  >
  passingTest,
}) {
  objc.checkOsVersionInternal(
    'NSIndexSet.indexesInRange:options:passingTest:',
    iOS: (false, (4, 0, 0)),
    macOS: (false, (10, 6, 0)),
  );
  final _ret = _objc_msgSend_1q30cs4(
    this.ref.pointer,
    _sel_indexesInRange_options_passingTest_,
    range,
    options.value,
    passingTest.ref.pointer,
  );
  return NSIndexSet.castFromPointer(_ret, retain: true, release: true);
}