two<A, B> static method
Observer2<A, B>
two<A, B>({
- Key? key,
- required IObservable<
A> o1, - required IObservable<
B> o2, - required Widget builder(
- BuildContext,
- A,
- B
Creates an Observer2 that listens to two observables o1 and o2,
and rebuilds the widget whenever either value changes.
Implementation
static Observer2<A, B> two<A, B>({
Key? key,
required IObservable<A> o1,
required IObservable<B> o2,
required Widget Function(BuildContext, A, B) builder,
}) {
return Observer2(
observable: o1, observable2: o2, builder: builder, key: key);
}