copyAssetToFile method

Future<void> copyAssetToFile(
  1. String assetPath,
  2. String targetPath
)

Copies asset file directly to target path using LargeFileHandler This is the CORRECT way to handle large files

Implementation

Future<void> copyAssetToFile(String assetPath, String targetPath) {
  // Do NOT wrap exceptions: callers (e.g. AssetSourceHandler) match by type
  // — wrapping MissingPluginException in a generic Exception would defeat
  // the desktop fallback path (#250).
  return _handler.copyAssetToLocalStorage(
    assetName: assetPath,
    targetPath: targetPath,
  );
}