setText method

void setText(
  1. String newText
)

Implementation

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