writeFile method
Creates file and writes content
Implementation
Future<String> writeFile({
required String content,
required File file,
}) async {
await file.create(recursive: true);
await file.writeAsString(content);
return file.path;
}
Creates file and writes content
Future<String> writeFile({
required String content,
required File file,
}) async {
await file.create(recursive: true);
await file.writeAsString(content);
return file.path;
}