write method
Writes text in the buffer to the summary buffer file and empties buffer.
Will append by default.
Implementation
void write({bool overwrite = false}) {
File(_filePath.path()).writeAsStringSync(
_buffer.toString(),
mode: overwrite ? FileMode.writeOnly : FileMode.append,
);
_buffer.clear();
}