ProxyProvider2<T, T2, R> constructor Null safety

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

Initializes key for subclasses.

Implementation

ProxyProvider2({
  Key? key,
  Create<R>? create,
  required ProxyProviderBuilder2<T, T2, R> update,
  UpdateShouldNotify<R>? updateShouldNotify,
  Dispose<R>? dispose,
  bool? lazy,
  TransitionBuilder? builder,
  Widget? child,
}) : super(
        key: key,
        lazy: lazy,
        builder: builder,
        create: create,
        update: (context, value) => update(
          context,
          Provider.of(context),
          Provider.of(context),
          value,
        ),
        updateShouldNotify: updateShouldNotify,
        dispose: dispose,
        child: child,
      );