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