insert method

void insert(
  1. int offset,
  2. Object? obj
)

Implementation

void insert(int offset, Object? obj) {
  _initBuffer();
  super.clear();
  if (offset > 0) super.write(_buffer!.substring(0, offset));
  _writeAuto(obj);
  if (offset < _buffer!.length) super.write(_buffer!.substring(offset));
  _buffer = null;
}