DarwinAsset class
A Darwin (iOS/macOS) only view over an AssetEntity.
Obtain it through AssetEntity.darwin. It groups PhotoKit-specific reads that only make sense on Apple platforms, so that AssetEntity itself stays lean instead of accumulating platform-specific members.
Migration note: this wrapper deliberately keeps no state beyond the wrapped
entity and every member simply forwards to the platform channel. Once the
package's Dart SDK floor reaches 3.3, it can be replaced by a zero-cost
extension type over the same representation type without touching any call
site — asset.darwin.xxx stays byte-for-byte identical:
extension type DarwinAsset(AssetEntity _asset) { ... }
Constructors
- DarwinAsset(AssetEntity _asset)
-
Creates a Darwin view over the given
_asset.const
Properties
-
cloudIdentifier
→ Future<
String?> -
The stable cloud identifier of the asset, shared across devices that use
the same iCloud Photo Library.
no setter
-
hasAdjustments
→ Future<
bool> -
Whether the asset contains adjustment (edit) data, e.g. filters or crops
applied in the Photos app.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAdjustmentData(
{PMProgressHandler? progressHandler}) → Future< Uint8List?> -
Export the raw AAE adjustment (edit-history) data for this asset, or
nullwhen the asset has no adjustments. -
getBaseFile(
{bool isOrigin = true, PMProgressHandler? progressHandler, PMDarwinAVFileType? darwinFileType, PMCancelToken? cancelToken}) → Future< File?> - Obtain the base (unedited) file of the asset, before any adjustments were applied in the Photos app.
-
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