attribute method

ObjCObjectBase? attribute(
  1. DartNSAttributedStringKey attrName, {
  2. required DartNSUInteger atIndex,
  3. required NSRangePointer effectiveRange,
})

attribute:atIndex:effectiveRange:

Implementation

objc.ObjCObjectBase? attribute(
  DartNSAttributedStringKey attrName, {
  required DartNSUInteger atIndex,
  required NSRangePointer effectiveRange,
}) {
  objc.checkOsVersionInternal(
    'NSAttributedString.attribute:atIndex:effectiveRange:',
    iOS: (false, (3, 2, 0)),
    macOS: (false, (10, 0, 0)),
  );
  final _ret = _objc_msgSend_7km9vu(
    this.ref.pointer,
    _sel_attribute_atIndex_effectiveRange_,
    attrName.ref.pointer,
    atIndex,
    effectiveRange,
  );
  return _ret.address == 0
      ? null
      : objc.ObjCObjectBase(_ret, retain: true, release: true);
}