download abstract method

Future<void> download(
  1. String url,
  2. String targetPath, {
  3. String? token,
})

Downloads a file from URL to target path

Parameters:

  • url: Source URL (must be HTTP/HTTPS)
  • targetPath: Full path where file should be saved
  • token: Optional authentication token

Throws:

  • NetworkException for network errors
  • FileSystemException for file write errors

Implementation

Future<void> download(String url, String targetPath, {String? token});