selectionAt method
Returns a collapsed DocumentSelection, positioned within this TextNode at the
given collapsedIndex.
Implementation
DocumentSelection selectionAt(int collapsedIndex) {
return DocumentSelection.collapsed(
position: positionAt(collapsedIndex),
);
}