writeToFile function

void writeToFile (dynamic filename, String data)

Implementation

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