downloadDataURL function

void downloadDataURL(
  1. DataURLBase64 dataURL,
  2. String fileName
)

Downloads dataURL, saving a file with fileName.

Implementation

void downloadDataURL(DataURLBase64 dataURL, String fileName) {
  var blob = dataURLToBlob(dataURL);
  downloadBlob(blob, fileName);
}