on3<A extends Comp<T> , B extends Comp<T> , C extends Comp<T> > method
Comp<T>
on3<A extends Comp<T> , B extends Comp<T> , C extends Comp<T> >(
- void callback(
- A,
- B,
- C
inherited
Invokes callback with the first top-level components matching types
A, B, and C, if all three exist.
Implementation
E on3<
A extends Comp<T>,
B extends Comp<T>,
C extends Comp<T>
>(
void Function(A, B, C) callback
) {
final a = get<A>(), b = get<B>(), c = get<C>();
if (a == null || b == null || c == null) return self;
callback(a, b, c);
return self;
}