isLocallyAvailable method

Future<bool> isLocallyAvailable({
  1. bool isOrigin = false,
})

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}) {
  return plugin.isLocallyAvailable(id, isOrigin: isOrigin);
}