writeFile static method
Write the file
Implementation
static Future<File> writeFile(
File file,
String content, {
FileMode? mode,
Encoding? encoding,
bool? flush,
}) =>
file.writeAsString(
content,
mode: mode ?? FileMode.write,
encoding: encoding ?? utf8,
flush: flush ?? true,
);