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