ProxyProvider0<R> constructor

ProxyProvider0<R>({
  1. Key? key,
  2. Create<R>? create,
  3. required R update(
    1. BuildContext context,
    2. R? value
    ),
  4. UpdateShouldNotify<R>? updateShouldNotify,
  5. Dispose<R>? dispose,
  6. bool? lazy,
  7. TransitionBuilder? builder,
  8. Widget? child,
})

Initializes key for subclasses.

Implementation

ProxyProvider0({
  Key? key,
  Create<R>? create,
  required R Function(BuildContext context, R? value) update,
  UpdateShouldNotify<R>? updateShouldNotify,
  Dispose<R>? dispose,
  bool? lazy,
  TransitionBuilder? builder,
  Widget? child,
}) : super(
        key: key,
        lazy: lazy,
        builder: builder,
        create: create,
        update: update,
        dispose: dispose,
        updateShouldNotify: updateShouldNotify,
        debugCheckInvalidValueType: kReleaseMode
            ? null
            : (R value) =>
                Provider.debugCheckInvalidValueType?.call<R>(value),
        child: child,
      );