downloadContent function

void downloadContent(
  1. List<String> content,
  2. MimeType mimeType,
  3. String fileName
)

Downloads content of type mimeType, saving a file with fileName.

Implementation

void downloadContent(List<String> content, MimeType mimeType, String fileName) {
  var blob = Blob(content, mimeType.toString());
  downloadBlob(blob, fileName);
}