ChangeNotifierProvider
ChangeNotifierProvider is a widget from the Flutter provider package that supplies a ChangeNotifier to its descendant widgets. It creates and holds a ChangeNotifier instance and makes it available to the widget subtree, enabling UI components to react to changes in the model.
In typical usage, a developer creates a model class that extends ChangeNotifier and wraps part of the
Widgets can subscribe to the provided notifier in several ways. The simplest is to use context.watch<MyModel>(),
Disposal is managed by the provider: when the ChangeNotifierProvider is removed from the widget tree, the provided
This pattern is widely used for managing simple, reactive state in Flutter apps and pairs well with