requestCacheAssets method

Future<void> requestCacheAssets({
  1. required List<AssetEntity> assets,
  2. ThumbnailOption option = _defaultOption,
})

Request caching for assets. The method does not supported on OpenHarmony.

Implementation

Future<void> requestCacheAssets({
  required List<AssetEntity> assets,
  ThumbnailOption option = _defaultOption,
}) {
  assert(assets.isNotEmpty);
  return plugin.requestCacheAssetsThumbnail(
    assets.map((AssetEntity e) => e.id).toList(),
    option,
  );
}