replace method
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;
}