downloadBytes function
Downloads bytes of type mimeType, saving a file with fileName.
Implementation
void downloadBytes(List<int> bytes, MimeType mimeType, String fileName) {
var blob = Blob(
bytes.map((e) => e.toJS).toList().toJS,
BlobPropertyBag(type: mimeType.toString()),
);
downloadBlob(blob, fileName);
}