value property

  1. @override
double value
override

The current value of the animation.

Setting this value notifies all the listeners that the value changed.

Setting this value also stops the controller if it is currently running; if this happens, it also notifies all the status listeners.

Implementation

@override
double get value => padding.apply(_value);
void value=(double newValue)

Stops the animation controller and sets the current value of the animation.

The new value is clamped to the range set by lowerBound and upperBound.

Value listeners are notified even if this does not change the value. Status listeners are notified if the animation was previously playing.

Implementation

set value(double newValue) {
  if (lowerBound != null && newValue <= lowerBound!) {
    newValue = lowerBound!;
  }
  stop();
  _internalSetValue(newValue);
  notifyListeners();
  _checkState();
}