stringWithContentsOfURL static method

ObjCObjectBase? stringWithContentsOfURL(
  1. NSURL url
)

stringWithContentsOfURL:

Implementation

static objc.ObjCObjectBase? stringWithContentsOfURL(objc.NSURL url) {
  objc.checkOsVersionInternal(
    'NSString.stringWithContentsOfURL:',
    iOS: (false, (2, 0, 0)),
    macOS: (false, (10, 0, 0)),
  );
  final _ret = _objc_msgSend_1sotr3r(
    _class_NSString,
    _sel_stringWithContentsOfURL_,
    url.ref.pointer,
  );
  return _ret.address == 0
      ? null
      : objc.ObjCObjectBase(_ret, retain: true, release: true);
}