darwin property
DarwinAsset
get
darwin
A Darwin (iOS/macOS) only namespace of PhotoKit reads for this asset.
Groups Apple-specific reads such as DarwinAsset.cloudIdentifier, DarwinAsset.hasAdjustments and DarwinAsset.getBaseFile, so that AssetEntity itself stays lean. Throws an OSError when accessed on a non-Darwin platform, so guard with Platform if needed.
Implementation
DarwinAsset get darwin {
if (Platform.isIOS || Platform.isMacOS) {
return DarwinAsset(this);
}
throw const OSError(
'AssetEntity.darwin is only available on iOS or macOS.',
);
}