URLAtIndex method

NSURL? URLAtIndex(
  1. DartNSUInteger location, {
  2. required NSRangePointer effectiveRange,
})

URLAtIndex:effectiveRange:

Implementation

objc.NSURL? URLAtIndex(
  DartNSUInteger location, {
  required NSRangePointer effectiveRange,
}) {
  objc.checkOsVersionInternal(
    'NSAttributedString.URLAtIndex:effectiveRange:',
    macOS: (false, (10, 5, 0)),
  );
  final _ret = _objc_msgSend_1776v9k(
    this.ref.pointer,
    _sel_URLAtIndex_effectiveRange_,
    location,
    effectiveRange,
  );
  return _ret.address == 0
      ? null
      : objc.NSURL.castFromPointer(_ret, retain: true, release: true);
}