writeString function

Future<File> writeString(
  1. File file,
  2. String content, {
  3. Encoding encoding = utf8,
})

Write a file string context. Does not fail

Implementation

Future<File> writeString(File file, String content,
    {Encoding encoding = utf8}) async {
  return fs.unwrapIoFile(
      await fs.writeString(fs.wrapIoFile(file), content, encoding: encoding));
}