write method

void write(
  1. Object? obj
)

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());
  }
}