animationWrapper method

AnimationWrapper animationWrapper()

Implementation

AnimationWrapper animationWrapper() {
  final locationTween = LocationTween(
    interpolator: LineLocationInterpolatorImpl(
      begin: description.begin.copyWith(markerId: description.markerId),
      end: description.end.copyWith(markerId: description.markerId),
    ),
  );

  final locationCtrller = AnimationController(
      vsync: description.vsync, duration: description.duration);

  return AnimationWrapper(locationTween, locationCtrller);
}