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