将内容写入文件。
static Future<File> writeFile(String path, String content) async { File file = File(path); return file.writeAsString(content); }