enumerateAttribute method

void enumerateAttribute(
  1. DartNSAttributedStringKey attrName, {
  2. required NSRange inRange,
  3. required NSAttributedStringEnumerationOptions options,
  4. required ObjCBlock<Void Function(Pointer<ObjCObject>?, NSRange, Pointer<Bool>)> usingBlock,
})

enumerateAttribute:inRange:options:usingBlock:

Implementation

void enumerateAttribute(
  DartNSAttributedStringKey attrName, {
  required NSRange inRange,
  required NSAttributedStringEnumerationOptions options,
  required objc.ObjCBlock<
    ffi.Void Function(
      ffi.Pointer<objc.ObjCObject>?,
      objc.NSRange,
      ffi.Pointer<ffi.Bool>,
    )
  >
  usingBlock,
}) {
  objc.checkOsVersionInternal(
    'NSAttributedString.enumerateAttribute:inRange:options:usingBlock:',
    iOS: (false, (4, 0, 0)),
    macOS: (false, (10, 6, 0)),
  );
  _objc_msgSend_ipgwfh(
    this.ref.pointer,
    _sel_enumerateAttribute_inRange_options_usingBlock_,
    attrName.ref.pointer,
    inRange,
    options.value,
    usingBlock.ref.pointer,
  );
}