addNewLine method

TextBit addNewLine ()

Adds a new line to the tail of this container.

Implementation

TextBit addNewLine() {
  final tail = last ?? prev;
  if (tail is _TextNewLine) return tail..extend();

  final bit = _TextNewLine(this);
  add(bit);
  return bit;
}