value property
The current value stored in this notifier.
When the value is replaced with something that is not equal to the old value as evaluated by the equality operator ==, this class notifies its listeners.
Implementation
@override
T get value => _value;
Implementation
@override
set value(TextEditingValue newValue) {
// notifyListeners will always be called if text changes.
if (text != newValue.text) {
// We have to call [findCompletion] before setting the value to ensure listeners will see the correct completion.
// We have to pass in the new text since value is not updated yet.
findCompletion(newValue.text);
}
super.value = newValue;
}