setSelectionRange method
setSelectionRange to select the text in the editor by index
Implementation
Future setSelectionRange(int index, int length) async {
  return await _editorKey?.currentState?._setSelectionRange(index, length);
}setSelectionRange to select the text in the editor by index
Future setSelectionRange(int index, int length) async {
  return await _editorKey?.currentState?._setSelectionRange(index, length);
}