lerp method

  1. @override
ILatLng lerp(
  1. double t
)
override

Interpolate two locations with planet spherical calculations at the given animation clock value.

Implementation

@override
ILatLng lerp(double t) {
  if (_interpolator.isStopped) return end;

  return _interpolator.interpolate(t).copyWith(
        markerId: end.markerId,
        isStopover: t == 1.0,
        markerJson: begin.markerJson,
      );
}