Adds the contents of obj, converted to a string, to the buffer.
obj
external void write(Object? obj);