appendString method

Future<void> appendString(
  1. String string, {
  2. Encoding encoding = utf8,
  3. bool flush = true,
})

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

Implementation

Future<void> appendString(
  String string, {
  Encoding encoding = utf8,
  bool flush = true,
}) async {
  await writeAsString(
    string,
    mode: FileMode.writeOnlyAppend,
    flush: flush,
    encoding: encoding,
  );
}