valueWithName method

ObjCObjectBase? valueWithName(
  1. NSString name, {
  2. required NSString inPropertyWithKey,
})

valueWithName:inPropertyWithKey:

Implementation

objc.ObjCObjectBase? valueWithName(
  objc.NSString name, {
  required objc.NSString inPropertyWithKey,
}) {
  objc.checkOsVersionInternal(
    'NSObject.valueWithName:inPropertyWithKey:',
    iOS: (false, (2, 0, 0)),
    macOS: (false, (10, 0, 0)),
  );
  final _ret = _objc_msgSend_15qeuct(
    this.ref.pointer,
    _sel_valueWithName_inPropertyWithKey_,
    name.ref.pointer,
    inPropertyWithKey.ref.pointer,
  );
  return _ret.address == 0
      ? null
      : objc.ObjCObjectBase(_ret, retain: true, release: true);
}