export method
Implementation
Future<bool> export() async {
var data = Data.from(_dataset);
// convert to data
String csv = await Data.toCsv(data);
// encode
var csvBytes = utf8.encode(csv);
// save to file
Platform.fileSaveAs(csvBytes, "${newId()}.csv");
return true;
}