onAll<C extends Comp<T>> method

Comp<T> onAll<C extends Comp<T>>(
  1. void callback(
    1. List<C> components
    )
)
inherited

Invokes callback with every top-level component matching type C.

Implementation

E onAll<C extends Comp<T>>(void Function(List<C> components) callback) {
  final found = getAll<C>();
  if (found.isNotEmpty) callback(found);
  return self;
}