setCursor method
Sets a specific cursor position in the text
Implementation
void setCursor(int offset) {
selection = TextSelection.collapsed(offset: offset);
}
Sets a specific cursor position in the text
void setCursor(int offset) {
selection = TextSelection.collapsed(offset: offset);
}