selectionAt method

DocumentSelection selectionAt(
  1. int collapsedIndex
)

Returns a collapsed DocumentSelection, positioned within this TextNode at the given collapsedIndex.

Implementation

DocumentSelection selectionAt(int collapsedIndex) {
  return DocumentSelection.collapsed(
    position: positionAt(collapsedIndex),
  );
}