ChangeNotifierProxyProvider0<R extends ChangeNotifier?> constructor Null safety

ChangeNotifierProxyProvider0<R extends ChangeNotifier?>(
  1. {Key? key,
  2. required Create<R> create,
  3. required R update(
    1. BuildContext,
    2. R? value
    ),
  4. bool? lazy,
  5. TransitionBuilder? builder,
  6. Widget? child}
)

Initializes key for subclasses.

Implementation

ChangeNotifierProxyProvider0({
  Key? key,
  required Create<R> create,
  required R Function(BuildContext, R? value) update,
  bool? lazy,
  TransitionBuilder? builder,
  Widget? child,
}) : super(
        key: key,
        create: create,
        update: update,
        dispose: ChangeNotifierProvider._dispose,
        lazy: lazy,
        builder: builder,
        child: child,
      );