combineWith<U, R> method
ComputedObservable<R>
combineWith<U, R>(
- Observable<
U> other, - R combiner(
- T,
- U
- EqualityFunction<
R> ? equals, - ErrorCallback? onError,
Creates a new ComputedObservable that depends on this one and additional observables.
Implementation
ComputedObservable<R> combineWith<U, R>(
Observable<U> other,
R Function(T, U) combiner, {
EqualityFunction<R>? equals,
ErrorCallback? onError,
}) {
throwIfDisposed('combineWith');
return ComputedObservable<R>(
() => combiner(value, other.value),
[..._dependencies, other],
equals: equals,
onError: onError,
);
}