value property

  1. @override
double get value
override

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
double get value => super.value;
  1. @override
set value (double newValue)
override

Implementation

@override
set value(double newValue) {
  if (super.value == newValue) return;
  super.value = newValue.clamp(0.0, 1.0);
  notifyListeners();
}