append method

void append(
  1. String line
)

Implementation

void append(String line) {
  try {
    File(this).writeAsStringSync(
      line + Platform.lineTerminator,
      mode: FileMode.append,
    );
  } catch (e) {
    throw Exception('Failed to append to file "$this": $e');
  }
}