animateTo method

void animateTo(
  1. double value,
  2. Duration duration, [
  3. Curve curve = Curves.linear
])

Animates to the specified value.

Implementation

void animateTo(
  double value,
  Duration duration, [
  Curve curve = Curves.linear,
]) {
  _controller.push(AnimationRequest(value, duration, curve), false);
}