text property

String text
inherited

The current string the user is editing.

Implementation

String get text => value.text;
  1. @override
void text=(String newText)
override

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,
  );
}