writeln method
Writes an object to the output followed by a newline.
Used for complete lines of content.
Implementation
@override
void writeln([Object? object = '']) {
final str = object?.toString() ?? '';
_buffer.writeln(str);
_lines.add(str);
}