replace method

void replace(
  1. int start,
  2. int end,
  3. dynamic obj
)

Implementation

void replace(int start, int end, dynamic obj) {
  _initBuffer();
  super.clear();
  if (start > 0) super.write(_buffer!.substring(0, start));
  _writeAuto(obj);
  if (end < _buffer!.length) super.write(_buffer!.substring(end));
  _buffer = null;
}