Created
February 23, 2020 13:01
-
-
Save slamdon/b8f971301a8ddf6016dc290d0dc4dede to your computer and use it in GitHub Desktop.
onPressed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onPressed: () { | |
final _cart = Provider.of<CartProvider>(context); | |
_cart.addProduct(this.product); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment