download method
Implementation
Stream<dynamic> download(String url, {Map<String, String>? headers}) {
final StreamController controller = StreamController();
_downloadStreams[url] = controller;
jsInvokeDwonloadMethod(
"download",
url,
headers != null ? json.encode(headers) : null,
);
return controller.stream;
}