add method

void add(
  1. String value
)

Adds a new line of value at the current index and increments the index by one.

Implementation

void add(String value) {
  _buffer.insert(index, value);
  _index++;
}