enumerateIndexPathsWithOptions method

void enumerateIndexPathsWithOptions(
  1. NSEnumerationOptions opts, {
  2. required ObjCBlock<Void Function(NSIndexPath, Pointer<Bool>)> usingBlock,
})

enumerateIndexPathsWithOptions:usingBlock:

Implementation

void enumerateIndexPathsWithOptions(
  objc.NSEnumerationOptions opts, {
  required objc.ObjCBlock<
    ffi.Void Function(NSIndexPath, ffi.Pointer<ffi.Bool>)
  >
  usingBlock,
}) {
  objc.checkOsVersionInternal(
    'NSSet.enumerateIndexPathsWithOptions:usingBlock:',
    iOS: (true, null),
    macOS: (false, (10, 11, 0)),
  );
  _objc_msgSend_yx8yc6(
    this.ref.pointer,
    _sel_enumerateIndexPathsWithOptions_usingBlock_,
    opts.value,
    usingBlock.ref.pointer,
  );
}