writeToFile function
Implementation
void writeToFile(filename, String data) {
new File(filename).writeAsString(data).then((File file) {
print("Operation Done");
});
}
void writeToFile(filename, String data) {
new File(filename).writeAsString(data).then((File file) {
print("Operation Done");
});
}