setText method
Implementation
void setText(String newText) {
text = newText;
selection = TextSelection.collapsed(offset: newText.length);
}
void setText(String newText) {
text = newText;
selection = TextSelection.collapsed(offset: newText.length);
}