target method

void target(
  1. double v
)

Implementation

void target(double v) {
  if (_value != v) {
    _simulation.target(v,
        time: lastElapsedDuration.inMicroseconds.toDouble());
    lastElapsedDuration = const Duration(milliseconds: 0);
    if (!_ticker.isActive) {
      notifyStatusListeners(AnimationStatus.forward);
    }
    _ticker.stop();
    _ticker.start();
  }
}