ChangeNotifierProvider<T extends ChangeNotifier?> constructor

ChangeNotifierProvider<T extends ChangeNotifier?>({
  1. required Create<T> create,
  2. Key? key,
  3. bool? lazy,
  4. TransitionBuilder? builder,
  5. Widget? child,
})

Provides the notifier create makes, disposed of when this widget leaves the tree.

Implementation

ChangeNotifierProvider({
  required super.create,
  super.key,
  super.lazy,
  super.builder,
  super.child,
}) : super(dispose: _dispose);