value property

  1. @override
TextEditingValue value
inherited

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;
void value=(TextEditingValue newValue)
override

Implementation

set value(TextEditingValue newValue) {
  newValue = newValue.copyWith(
      composing: TextRange(
          start: newValue.composing.start < 0 ? 0 : newValue.composing.start,
          end: newValue.composing.end < 0 ? 0 : newValue.composing.end),
      selection: newValue.selection.copyWith(
          baseOffset: newValue.selection.baseOffset < 0
              ? 0
              : newValue.selection.baseOffset,
          extentOffset: newValue.selection.extentOffset < 0
              ? 0
              : newValue.selection.extentOffset));
  super.value = newValue;
}