write method
Implementation
void write(String line) {
try {
File(this).writeAsStringSync(line + Platform.lineTerminator);
} catch (e) {
throw Exception('Failed to write to file "$this": $e');
}
}
void write(String line) {
try {
File(this).writeAsStringSync(line + Platform.lineTerminator);
} catch (e) {
throw Exception('Failed to write to file "$this": $e');
}
}