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