createAddToCartAnimation property
you can receive runAddToCartAnimation
animation method on createAddToCartAnimation.
runAddToCartAnimation
animation method runs the add to cart animation based on the given parameters.
Add to cart animation drags the given widget to the cart based on their location via global keys
Implementation
final Function(Future<void> Function(GlobalKey)) createAddToCartAnimation;