text property
The current string the user is editing.
Implementation
String get text => value.text;
Setting this will notify all the listeners of this TextEditingController that they need to update (it calls notifyListeners).
Implementation
@override
set text(String newText) {
value = value.copyWith(
text: newText,
selection: const TextSelection.collapsed(offset: -1),
composing: TextRange.empty,
);
}