insertEmptyLine method
void
insertEmptyLine()
Implementation
void insertEmptyLine() {
if (_sealed) {
throw StateError('Cannot be inserted when $runtimeType is sealed');
}
if (_lines.isNotEmpty) {
_lines.last.seal();
}
_lines.add(Line(fragments: []));
}