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 {
if (!this._valueInitialized) return null;
return this._value;
}
Implementation
@override
set value(T? newValue) {
if (this._valueInitialized && newValue == this._value) return;
this.checkValue?.call(newValue);
this._value = newValue;
this._valueInitialized = true;
this.notifyListeners();
if (!this._initCompleter.isCompleted) this._initCompleter.complete(this);
this._writeAsync(newValue);
}