insertAt method
Implementation
void insertAt(int index, TextFragment fragment) {
if (_sealed) {
throw StateError(
'Element of type ${fragment.runtimeType} cannot be inserted at $index when $runtimeType is sealed');
}
_fragments.insert(index, fragment);
return;
}