setSelection method
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);
}