1 year ago

#267281

test-img

Eduarda Garangau

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?

code image

flutter

dart

flutter-provider

flutter-state

flutter-change-notifier

0 Answers

Your Answer

Accepted video resources