ProxyProvider2<T, T2, R> constructor

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

Provides what update makes from the T and the T2 above.

Implementation

ProxyProvider2({
  required ProxyProviderBuilder2<T, T2, R> update,
  super.key,
  super.create,
  super.updateShouldNotify,
  super.dispose,
  super.lazy,
  super.builder,
  super.child,
}) : super(
       update: (context, previous) => update(
         context,
         Provider.of<T>(context),
         Provider.of<T2>(context),
         previous,
       ),
     );