i use package image_downloader
for download svg image.
i want to save them in asset file project.
can anyone help me please how can I do that ?
image_downloader: ^0.31.0
here is my code:
downloadSvg(url, name)async{
await ImageDownloader.downloadImage(url,
destination: AndroidDestinationType.custom(directory: 'E:/projects/Myapp/assets/icons')
..inExternalFilesDir()
..subDirectory("icons/$name.svg"),
);
}