myPluginDownload function
- String url
Implementation
void myPluginDownload(String url) {
if (kReleaseMode) {
url = "assets/$url";
}
HTMLAnchorElement()
..href = url
..download = trimAfterLastSlash(url)
..click();
// HTMLAnchorElement anchorElement = web.HTMLAnchorElement();
// anchorElement.download = trimAfterLastSlash(url);
// anchorElement.href = url;
// anchorElement.click();
}