requestCacheAssetsThumbnail method

Future<void> requestCacheAssetsThumbnail(
  1. List<String> ids,
  2. ThumbnailOption option
)

Implementation

Future<void> requestCacheAssetsThumbnail(
  List<String> ids,
  ThumbnailOption option,
) async {
  if (PlatformUtils.isOhos) {
    return;
  }
  if (ids.isEmpty) {
    throw ArgumentError('Empty IDs are not allowed');
  }
  return _channel.invokeMethod(
    PMConstants.mRequestCacheAssetsThumb,
    <String, dynamic>{
      'ids': ids,
      'option': option.toMap(),
    },
  );
}