watchOnly<R> method

R watchOnly<R>(
  1. BuildContext context,
  2. R selector(
    1. TListenable0,
    2. T2,
    3. TListenable3
    )
)

Watch all observables for changes.

Whenever any observable notifies of a change, the selector will be called with the latest values of all observables. If the selector returns a different value, the context will be rebuilt.

Returns the value provided by selector.

It is safe to call this method multiple times within the same build method.

Implementation

R watchOnly<R>(
  BuildContext context,
  R Function(TListenable0, T2, TListenable3) selector,
) {
  return watchOnly3<R, TListenable0, T2, TListenable3, TListenable0, T2, TListenable3>(context, selector, $1.of(context), $2.of(context), $3.of(context), ContextWatcherObservableType.listenable, ContextWatcherObservableType.valueListenable, ContextWatcherObservableType.listenable);
}