Notifier
Also written: NotifierProvider, CartNotifier
A Riverpod class that owns one value, `state`, and the methods that change it. Replace the state instead of changing it in place so watching widgets rebuild.
Also written: NotifierProvider, CartNotifier
A Riverpod class that owns one value, `state`, and the methods that change it. Replace the state instead of changing it in place so watching widgets rebuild.