if the consumer faucets the list product, the widget won't modify its inCart value right. as a substitute, the widget calls the onCartChanged perform it acquired from its guardian widget.
Flutter takes advantage of https://mariahnugm467740.thelateblog.com/29843873/mockito-flutter-an-overview