createFile function

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

Implementation

void createFile(String path, String content) {
  File(path).writeAsStringSync(content);
}