value property

  1. @override
T get value
override

Retrieves the current value.

Implementation

@override
T get value {
  reportRead();
  return _value as T;
}
  1. @override
set value (T newValue)
override

Sets the new value and triggers a refresh if the value has changed.

Implementation

@override
set value(T newValue) {
  if (_value == newValue) {
    return;
  }
  _value = newValue;
  refresh();
}