writeStringFile function

void writeStringFile(
  1. String path,
  2. String content
)

write file with text content

Implementation

void writeStringFile(String path, String content) {
  final file = File(path);
  file.writeAsStringSync(content);
}