ICloudFile class

Metadata for an iCloud file or directory.

Populated from NSMetadataQuery, which is eventually consistent — the Spotlight index may lag behind local filesystem mutations. For an immediately-consistent listing after your own mutations (rename, delete, copy), use ContainerItem via ICloudStorage.listContents instead.

Constructors

ICloudFile.fromMap(Map map)
Creates an object from the normalized platform-channel payload.

Properties

contentChangeDate → DateTime?
Corresponding to NSMetadataItemFSContentChangeDateKey. Nullable when the platform does not provide it.
final
creationDate → DateTime?
Corresponding to NSMetadataItemFSCreationDateKey. Nullable when the platform does not provide it.
final
downloadStatus → DownloadStatus?
Corresponding to NSMetadataUbiquitousItemDownloadingStatusKey. Nullable when the platform does not provide it.
final
hashCode → int
The hash code for this object.
no setterinherited
hasUnresolvedConflicts → bool
Corresponding to NSMetadataUbiquitousItemHasUnresolvedConflictsKey.
final
isDirectory → bool
True when the item represents a directory.
final
isDownloading → bool
Corresponding to NSMetadataUbiquitousItemIsDownloadingKey.
final
isUploaded → bool
Corresponding to NSMetadataUbiquitousItemIsUploadedKey.
final
isUploading → bool
Corresponding to NSMetadataUbiquitousItemIsUploadingKey.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
relativePath → String
File path relative to the iCloud container.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeInBytes → int?
Corresponding to NSMetadataItemFSSizeKey. Nullable when the platform does not provide it.
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
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