value property

  1. @override
TextEditingValue get value
override

The current value held by this object.

Implementation

@override
TextEditingValue get value =>
    TextEditingValue(text: text, selection: selection);
set value (TextEditingValue newValue)

Sets the value and notifies listeners.

Implementation

set value(TextEditingValue newValue) {
  if (value == newValue) return;
  _model.setTextState(
    text: newValue.text,
    selectionBase: newValue.selection.baseOffset,
    selectionExtent: newValue.selection.extentOffset,
  );
  notifyListeners();
}