save method
Starts Saving the file.
On Web
// Call function save() to download the file
var bytes = excel.save(fileName: "My_Excel_File_Name.xlsx");
On Android / iOS
For getting directory on Android or iOS, Use: path_provider
// Call function save() to download the file
var fileBytes = excel.save();
var directory = await getApplicationDocumentsDirectory();
File(join("$directory/output_file_name.xlsx"))
..createSync(recursive: true)
..writeAsBytesSync(fileBytes);
Implementation
List<int>? save({String fileName = 'FlutterExcel.xlsx'}) {
Save s = Save._(this, parser);
var onValue = s._save();
return helper.SavingHelper.saveFile(onValue, fileName);
}