setSelection method

void setSelection(
  1. int blockIndex,
  2. int startOffset,
  3. int endOffset, {
  4. int? row,
  5. int? col,
})

Sets text selection in the specified block using 0-based document offsets.

Implementation

void setSelection(int blockIndex, int startOffset, int endOffset,
    {int? row, int? col}) {
  _editorWidgetState?.setSelection(blockIndex, startOffset, endOffset,
      row: row, col: col);
}