Why are we adding the notifyListeners on page 291 whereas notifyListeners() is already being called after each change within the respective state managers???
For example, the logout() method in app_state_manager.dart calls the notifyListeners() method immediately after it has effected a state change; so, why do we need to add the listeners as we do on page 291?
Also, it is not clear to me how AppRouter is listenning to the changes since we haven’t added a consumer that wraps AppRouter.
The author for chapter 7 has had some personal issues and is currently not available, so others will need to cover for them. Your patience is appreciated.
For us to help you we need additional information. Chapter 7 does’t have anything about notifyListeners. Also, page numbers only if someone is looking at a print copy. It is more helpful to refer to a specific chapter, section, and if applicable sub-section. That way anyone reading the message knows where to find the materials being asked about; especially if the person reading is using the website as their reference. For example, your question regarding page 291, my copies don’t have have anything about notifyListeners() - not my print book (I don’t have Ed 3 yet in print) nor ePub.
Can you provide more details as to where you’re running into issues? That will help us help you.
My 1st question pertained to that, and I’d still appreciate an answer on my 1st question.
Thank you to @kemmetdaniel for providing an answer to my 2nd question (Not sure yet if that’s the answer … I’d need to go back and read that section of the book again; however, it probably IS the answer, and I am very appreciative for the help!)