trimToSize method

StringBuilder trimToSize()

Trims the capacity to the current length.

Implementation

StringBuilder trimToSize() {
  // No-op in Dart since StringBuffer doesn't have excess capacity
  return this;
}