newFile method

File newFile(
  1. String path,
  2. String content
)

Writes content to the file at path.

Implementation

File newFile(String path, String content) {
  String convertedPath = convertPath(path);
  return resourceProvider.getFile(convertedPath)..writeAsStringSync(content);
}