createFile method

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

Implementation

void createFile(String fileName, String content) {
  final file = File(fileName);
  file.writeAsStringSync(content);
}