value property Null safety

T value
override

The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.

Implementation

@override
T get value => _value;
void value=(T val)

Implementation

set value(T val) {
  if (mode == CustomNotifierMode.manual) {
    _value = val;
    return;
  }
  if (val != _value || mode == CustomNotifierMode.always) {
    _value = val;
    notifyListeners();
  }
}