insertAll method

void insertAll(
  1. Iterable<Line> lines
)

Inserts a new Line into the paragraph.

Implementation

void insertAll(Iterable<Line> lines) {
  if (_sealed) {
    throw StateError(
        'Elements cannot be inserted when $runtimeType(sealed=$_sealed)');
  }
  lines.forEach(insert);
}