write method
Writes the given object to the buffer.
If the object is null, an empty string is written.
Implementation
void write(Object? obj) {
if (obj == null) {
_buffer.write('');
} else {
_buffer.write(obj.toString());
}
}
Writes the given object to the buffer.
If the object is null, an empty string is written.
void write(Object? obj) {
if (obj == null) {
_buffer.write('');
} else {
_buffer.write(obj.toString());
}
}