clear method

StringBuilder clear()

Clears the contents of this StringBuilder.

Returns this StringBuilder for method chaining

Implementation

StringBuilder clear() {
  _buffer.clear();
  return this;
}