copyAssetToPath method

Future<AssetEntity?> copyAssetToPath({
  1. required AssetEntity asset,
  2. required AssetPathEntity pathEntity,
})

Copy asset to another gallery.

In iOS, just something similar to a shortcut, it points to the same asset. In android, the asset file will produce a copy.

Implementation

Future<AssetEntity?> copyAssetToPath({
  required AssetEntity asset,
  required AssetPathEntity pathEntity,
}) {
  return _plugin.copyAssetToGallery(asset, pathEntity);
}