watchOnly<R> method
R
watchOnly<R>(
- BuildContext context,
- R selector(
- TListenable0,
- AsyncSnapshot<
T1> , - AsyncSnapshot<
T2> , - AsyncSnapshot<
T3> ,
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, AsyncSnapshot<T1>, AsyncSnapshot<T2>, AsyncSnapshot<T3>) selector,
) {
return watchOnly4<R, TListenable0, AsyncSnapshot<T1>, AsyncSnapshot<T2>, AsyncSnapshot<T3>, TListenable0, T1, T2, T3>(context, selector, $1, $2, $3, $4, ContextWatcherObservableType.listenable, ContextWatcherObservableType.future, ContextWatcherObservableType.future, ContextWatcherObservableType.future);
}