append method
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');
}
}