setSelectionRange method

Future setSelectionRange(
  1. int index,
  2. int length
)

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