writeToFile method

void writeToFile(
  1. File file,
  2. String notes
)

Implementation

void writeToFile(File file, String notes) async {
  var newFile = await file.writeAsString(notes, encoding: utf8);
  if (newFile.existsSync()) {
    print('保存成功');
  }
}