write method

void write(
  1. String line
)

Implementation

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