doWriteAsString method

Future<FileMixin> doWriteAsString(
  1. String contents, {
  2. FileMode mode = FileMode.write,
  3. Encoding encoding = utf8,
  4. bool flush = false,
})

Write String

Implementation

Future<FileMixin> doWriteAsString(String contents,
        {FileMode mode = FileMode.write,
        Encoding encoding = utf8,
        bool flush = false}) =>
    doWriteAsBytes(encoding.encode(contents), mode: mode, flush: flush);