moveToNextFocus method
Moves focus to the next OTP input field.
Implementation
void moveToNextFocus(int index) async {
if (index == (list.length - 1)) {
widget.onCompleted?.call(concatText);
} else {
context.unFocus(list[index].focusNode!);
context.requestFocus(list[index + 1].focusNode!);
list[index + 1].textEditingController!.text = ' ';
setTextSelection(index + 1);
}
}