animatePoints method

void animatePoints({
  1. ILatLng last = const ILatLng.empty(),
})

Implementation

void animatePoints({ILatLng last = const ILatLng.empty()}) {
  if (description.isQueueNotEmpty) {
    _locationCtrller.removeStatusListener(_statusListener);

    var interpolator =
        PolynomialLocationInterpolator(points: description.values);
    var multiPoint = LocationTween(interpolator: interpolator);

    _swappingValue(last);

    _isResseting = true;

    _locationCtrller.addStatusListener(_statusListenerPoints);

    _proxyAnim.parent = multiPoint.curvedAnimate(
      curve: description.curve,
      controller: _locationCtrller,
    );

    _locationCtrller.resetAndForward();
  }
}