proxy3<E, A, B, C> function

ProxyProvider3<A, B, C, E> proxy3<E, A, B, C>(
  1. LifecycleAwareBuilder4<E, A, B, C> create, {
  2. bool lazy = true,
  3. Widget? child,
})

Implementation

ProxyProvider3<A, B, C, E> proxy3<E, A, B, C>(
        LifecycleAwareBuilder4<E, A, B, C> create,
        {bool lazy = true,
        Widget? child}) =>
    ProxyProvider3<A, B, C, E>(
      update: (ctx, a, b, c, s) => s ?? trying(() => create(a, b, c)),
      dispose: (context, final value) {
        if (value is LifecycleAware) value.dispose();
      },
      lazy: lazy,
      child: child,
    );