append method

void append(
  1. String line, {
  2. String? newline = '\n',
})

Appends the line to the file If newline is true then append a newline after the line.

Implementation

void append(String line, {String? newline = '\n'}) {
  final finalline = line + (newline ?? '');

  _raf
    ..setPositionSync(_raf.lengthSync())
    ..writeStringSync(finalline);
}