writeFileFromString function

Future<void> writeFileFromString(
  1. String path,
  2. String contents
)

Implementation

Future<void> writeFileFromString(String path, String contents) async {
  var file = File(path);
  await file.writeAsString(contents);
}