writeFile function

dynamic writeFile(
  1. String path,
  2. String content
)

Implementation

writeFile(String path, String content) async {
  final Directory directory = Directory.current;
  final File file = File('${directory.path}/$path');
  await file.writeAsString(content);
}