ObserverProvider3<TInput1, TInput2, TInput3, TOutput> constructor

ObserverProvider3<TInput1, TInput2, TInput3, TOutput>({
  1. Key? key,
  2. required ObserverFn3<TInput1, TInput2, TInput3, TOutput> observerFn,
  3. Widget? child,
})

Implementation

ObserverProvider3({
  Key? key,
  required ObserverFn3<TInput1, TInput2, TInput3, TOutput> observerFn,
  Widget? child,
}) : super(
          key: key,
          child: child,
          observerFn: (ctx) {
            final in1 = Provider.of<TInput1>(ctx);
            final in2 = Provider.of<TInput2>(ctx);
            final in3 = Provider.of<TInput3>(ctx);
            return observerFn(ctx, in1, in2, in3);
          });