appendStringSync method

void appendStringSync(
  1. String string, {
  2. Encoding encoding = utf8,
  3. bool flush = true,
})

Synchronously appends a string to the end of this file using the specified encoding.

Implementation

void appendStringSync(
  String string, {
  Encoding encoding = utf8,
  bool flush = true,
}) {
  writeAsStringSync(
    string,
    mode: FileMode.writeOnlyAppend,
    flush: flush,
    encoding: encoding,
  );
}