target method
Implementation
void target(Offset target) {
if (_value != target || _targetValue != target) {
_targetValue = target;
_curSimulation = simulationConstructor(
_value,
_curSimulation.dx(lastElapsedDuration.inMicroseconds.toDouble()),
target);
lastElapsedDuration = const Duration(milliseconds: 0);
bool tickingWasActive = _ticker.isActive;
_ticker.stop();
_ticker.start();
if (!tickingWasActive) {
notifyStatusListeners(AnimationStatus.forward);
}
}
}