ProxyProvider2<T, T2, R> constructor
ProxyProvider2<T, T2, R> ({
- required ProxyProviderBuilder2<
T, T2, 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 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,
),
);