combineLatest3<R, A, B, C> function
EventSubscriptionBuilder<R>
combineLatest3<R, A, B, C>(
- EventSubscriptionBuilder<
A> eventA, - EventSubscriptionBuilder<
B> eventB, - EventSubscriptionBuilder<
C> eventC, - R combinator(
- A a,
- B b,
- C c
Combines the latest values of each provided event using the combinator
into a single output EventHandler.
See combineLatest.
Implementation
EventSubscriptionBuilder<R> combineLatest3<R, A, B, C>(
EventSubscriptionBuilder<A> eventA,
EventSubscriptionBuilder<B> eventB,
EventSubscriptionBuilder<C> eventC,
R Function(A a, B b, C c) combinator,
) {
return combineLatest(
[eventA, eventB, eventC],
(values) {
final a = values[0] as A;
final b = values[1] as B;
final c = values[2] as C;
return combinator(a, b, c);
},
);
}