setText method

void setText(
  1. String value
)

Replaces the text and puts the cursor at the end. controller.setText("hello")

Implementation

void setText(String value) => this.value = TextEditingValue(
  text: value,
  selection: TextSelection.collapsed(offset: value.length),
);