onAddToCart property Null safety
read / write
This callback is triggered when the user clicks the "Add to cart" button.
The host app can return an AddToCartResult object to tell FireworkSDK the result of adding to cart.
Implementation
AddToCartCallback? onAddToCart;