initWithPasteboardPropertyList method
ObjCObjectBase?
initWithPasteboardPropertyList(
- ObjCObjectBase propertyList, {
- required DartNSPasteboardType ofType,
initWithPasteboardPropertyList:ofType:
Implementation
objc.ObjCObjectBase? initWithPasteboardPropertyList(
objc.ObjCObjectBase propertyList, {
required DartNSPasteboardType ofType,
}) {
objc.checkOsVersionInternal(
'NSURL.initWithPasteboardPropertyList:ofType:',
iOS: (true, null),
);
if (!objc.respondsToSelector(
this.ref.retainAndReturnPointer(),
_sel_initWithPasteboardPropertyList_ofType_,
)) {
throw objc.UnimplementedOptionalMethodException(
'NSURL',
'initWithPasteboardPropertyList:ofType:',
);
}
final _ret = _objc_msgSend_15qeuct(
this.ref.retainAndReturnPointer(),
_sel_initWithPasteboardPropertyList_ofType_,
propertyList.ref.pointer,
ofType.ref.pointer,
);
return _ret.address == 0
? null
: objc.ObjCObjectBase(_ret, retain: false, release: true);
}