FileResourceKey enum
Keys identifying specific file-system resource properties.
Pass a set of these keys to
DarwinFileAttributes.getResourceValues to request only the attributes you
need. Fetching fewer keys is more efficient than requesting all values.
Values
- isExcludedFromBackup → const FileResourceKey
-
Whether the file is excluded from backups (iCloud, iTunes, Finder).
Available on iOS and macOS. Writable.
- isHidden → const FileResourceKey
-
Whether the file is hidden in Finder / Files.
Available on iOS and macOS. Writable.
- isUserImmutable → const FileResourceKey
-
Whether the file is locked by the user (user-immutable flag).
macOS only. Returns
nullon iOS. Writable on macOS. - creationDate → const FileResourceKey
-
The file's creation date.
Available on iOS and macOS. Writable.
- contentModificationDate → const FileResourceKey
-
The file's last content-modification date.
Available on iOS and macOS. Writable.
- fileProtection → const FileResourceKey
-
The file's iOS Data Protection class.
iOS only. Returns
nullon macOS. Writable on iOS. - isUbiquitousItem → const FileResourceKey
-
Whether the file is a ubiquitous item (managed by iCloud).
Available on iOS and macOS. Read-only.
- ubiquitousItemDownloadingStatus → const FileResourceKey
-
The current download status of a ubiquitous (iCloud) item.
Available on iOS and macOS. Read-only.
- ubiquitousItemIsUploaded → const FileResourceKey
-
Whether the ubiquitous item has been uploaded to iCloud.
Available on iOS and macOS. Read-only.
- ubiquitousItemIsUploading → const FileResourceKey
-
Whether the ubiquitous item is currently being uploaded to iCloud.
Available on iOS and macOS. Read-only.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
FileResourceKey> - A constant List of the values in this enum, in order of their declaration.