value property

T? value

Returns the current value.

Implementation

T? get value => _value;
void value=(T? newValue)

Set a new value. It will override the current value.

Implementation

set value(T? newValue) {
  textController.text = newValue?.toString() ?? '';

  _value = newValue;
  _subject.add(newValue);
}