ChangeNotifierProvider<T extends ChangeNotifier> constructor

ChangeNotifierProvider<T extends ChangeNotifier>(
  1. Create<T, ProviderReference> _create, {
  2. 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);