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], mimeType.toString());
downloadBlob(blob, fileName);
}