ProxyProvider<T, R> constructor

ProxyProvider<T, R>({
  1. required ProxyProviderBuilder<T, 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 above.

Implementation

ProxyProvider({
  required ProxyProviderBuilder<T, 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), previous),
     );