ChangeNotifierProvider<T extends ChangeNotifier> constructor
ChangeNotifierProvider<T extends ChangeNotifier> (
- Create<
T, ProviderReference> _create, { - String? name,
Creates a ChangeNotifier and subscribes to it.
Note: By using Riverpod, ChangeNotifier will no-longer be O(N^2) for dispatching notifications, but instead O(N)
Implementation
ChangeNotifierProvider(this._create, {String? name}) : super(name);