NSFileProtectionKey property

DartCADynamicRange get NSFileProtectionKey

Implementation

DartNSFileAttributeKey get NSFileProtectionKey =>
    objc.NSString.castFromPointer(
      _NSFileProtectionKey.value,
      retain: true,
      release: true,
    );
set NSFileProtectionKey (DartNSFileAttributeKey value)

Implementation

set NSFileProtectionKey(DartNSFileAttributeKey value) {
  objc.NSString.castFromPointer(
    _NSFileProtectionKey.value,
    retain: false,
    release: true,
  ).ref.release();
  _NSFileProtectionKey.value = value.ref.retainAndReturnPointer();
}