currentWordIndex property
Implementation
int get currentWordIndex => value.currentWordIndex;
Implementation
set currentWordIndex(int value) {
var cursorPosition = words.take(value).join(' ').length;
selection = TextSelection(baseOffset: cursorPosition - currentWord.length, extentOffset: cursorPosition);
}