appendObject method

StringBuilder appendObject(
  1. Object? obj
)

Appends an object's string representation to this StringBuilder.

obj the object to append Returns this StringBuilder for method chaining

Implementation

StringBuilder appendObject(Object? obj) {
  _buffer.write(obj?.toString() ?? 'null');
  return this;
}