value property

Offset get value

Current animated offset.

Implementation

Offset get value => Offset(_valueX, _valueY);
set value (Offset v)

Immediately set both axes without animating.

Implementation

set value(Offset v) {
  _ticker?.stop();
  _simX = null;
  _simY = null;
  _valueX = v.dx;
  _valueY = v.dy;
  _targetX = v.dx;
  _targetY = v.dy;
  _tickerElapsed = 0.0;
  _simStartTimeX = 0.0;
  _simStartTimeY = 0.0;
  notifyListeners();
}