download abstract method
Downloads a file from URL to target path
Parameters:
url
: Source URL (must be HTTP/HTTPS)targetPath
: Full path where file should be savedtoken
: Optional authentication token
Throws:
NetworkException
for network errorsFileSystemException
for file write errors
Implementation
Future<void> download(String url, String targetPath, {String? token});