watch2<A, B> static method

Widget watch2<A, B>(
  1. Reactive<A> a,
  2. Reactive<B> b,
  3. Widget builder(
    1. A a,
    2. B b
    ), {
  4. Key? key,
})

Build a widget from two explicit reactive values.

Implementation

static Widget watch2<A, B>(
  Reactive<A> a,
  Reactive<B> b,
  Widget Function(A a, B b) builder, {
  Key? key,
}) {
  return ReactiveBuilder(() => builder(a.value, b.value), key: key);
}