isLocallyAvailable method
Future<bool>
isLocallyAvailable({
- bool isOrigin = false,
- bool withSubtype = false,
- PMDarwinAVFileType? darwinFileType,
Whether this asset is locally available.
- Android: Always true.
- iOS/macOS: Whether the asset has been uploaded to iCloud and locally exist (including cached or not).
Implementation
Future<bool> isLocallyAvailable({
bool isOrigin = false,
bool withSubtype = false,
PMDarwinAVFileType? darwinFileType,
}) {
return plugin.isLocallyAvailable(
id,
isOrigin: isOrigin,
subtype: withSubtype ? subtype : 0,
darwinFileType: darwinFileType,
);
}