DoFirstWith3<A extends Comp<T> , B extends Comp<T> , C extends Comp<T> > method
void
DoFirstWith3<A extends Comp<T> , B extends Comp<T> , C extends Comp<T> >(
- void fn(
- E entity,
- A a,
- B b,
- C c,
Query-like Calls fn with the first matching element and its A,
B, and C components. Does nothing if the result set is empty.
Implementation
void DoFirstWith3<
A extends Comp<T>,
B extends Comp<T>,
C extends Comp<T>
>(void Function(E entity, A a, B b, C c) fn) {
final entities = _resolve();
if (entities.isEmpty) return;
final entity = entities.first;
entity.on3<A, B, C>((a, b, c) => fn(entity, a, b, c));
}