newFile method

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

Implementation

File newFile(String path, String content) {
  var bytes = const Utf8Encoder().convert(content);
  return newFileWithBytes(path, bytes);
}