value property

  1. @override
double get value
inherited

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

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.

The most recently returned TickerFuture, if any, is marked as having been canceled, meaning the future never completes and its TickerFuture.orCancel derivative future completes with a TickerCanceled error.

See also:

Implementation

@override
set value(double newValue) {
  _canvasNeedsClear = false;
  _seeking = true;
  try {
    super.value = newValue;
  } finally {
    _seeking = false;
  }
}