darwin property
DarwinAssetPath
get
darwin
A Darwin (iOS/macOS) only namespace of PhotoKit reads for this path.
Groups Apple-specific hierarchy reads (e.g. DarwinAssetPath.getParentPathList) so that AssetPathEntity itself stays lean. Throws an OSError when accessed on a non-Darwin platform, so guard with Platform if needed.
Implementation
DarwinAssetPath get darwin {
if (Platform.isIOS || Platform.isMacOS) {
return DarwinAssetPath(this);
}
throw const OSError(
'AssetPathEntity.darwin is only available on iOS or macOS.',
);
}