isLocallyAvailable method

Future<bool> isLocallyAvailable({
  1. bool isOrigin = false,
  2. bool withSubtype = false,
  3. 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,
  );
}