writeFileString static method
Implementation
static Future<File> writeFileString(
String filename,
String content, {
bool recursive = false,
}) async {
final file = await getFile(filename);
await file.create(recursive: recursive);
final raf = file.openSync(mode: FileMode.write)..writeStringSync(content);
await raf.close();
return file;
}