write method
Writes an object to the output without a trailing newline.
Used for ANSI escape sequences and inline content.
Implementation
@override
void write(Object? object) {
final str = object?.toString() ?? '';
_buffer.write(str);
_writes.add(str);
}