saveFile function
Implementation
Future<void> saveFile(Uint8List bytes, String fileName) async {
final blob = html.Blob([bytes]);
final url = html.Url.createObjectUrlFromBlob(blob);
html.AnchorElement(href: url)
..setAttribute("download", fileName)
..click();
html.Url.revokeObjectUrl(url);
}