newFile method

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

Implementation

File newFile(String path, String content) {
  var bytes = utf8.encode(content) as Uint8List;
  return newFileWithBytes(path, bytes);
}