ProxyProvider<T, R> constructor
ProxyProvider<T, R> ({
- required ProxyProviderBuilder<
T, R> update, - Key? key,
- Create<
R> ? create, - UpdateShouldNotify<
R> ? updateShouldNotify, - Dispose<
R> ? dispose, - bool? lazy,
- TransitionBuilder? builder,
- 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),
);