cartKey property

GlobalKey<CartIconKey> cartKey
final

The Global Key of the AddToCartIcon element. We need it because we need to know where is the cart icon is located in the screen. Based on the location, we are dragging given widget to the cart.

Implementation

final GlobalKey<CartIconKey> cartKey;