'How notifyListeners( ) actually works?
So, I have this class and I use the method addItem to add some item to my cart and itemsCount to have my total items show up in my cart icon in AppBar.
My question is, how the itemsCount is update after I use addItem if itemsCount does not have notifyListeners( )?
The notifyListeners( ) in addItem that update that? The notifyListeners( ) actually update all the methods in class that are being using in all the app?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
