value property

  1. @override
T get value

The current value of this AnimatableValue.

This value is read at the start of an animation and is animate to.

Implementation

@override
T get value => _value;
set value (T value)

Implementation

set value(T value) {
  final animationSpec = currentAnimation;

  if (_value != value) {
    _value = value;

    if (animationSpec == null ||
        SemanticsBinding.instance.disableAnimations) {
      // Immediately update _animatedValue to the new _value.
      _updateWithoutAnimation();
    } else {
      // Start a new animation from the current _animatedValue to the new
      // _value with the currently active spec.
      _updateWithAnimation(animationSpec);
    }
  }
}