ChangeNotifierProvider<T extends ChangeNotifier?>.value constructor Null safety

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

Provides an existing ChangeNotifier.

Implementation

ChangeNotifierProvider.value({
  Key? key,
  required T value,
  TransitionBuilder? builder,
  Widget? child,
}) : super.value(
        key: key,
        builder: builder,
        value: value,
        child: child,
      );