deliverAtPoint<T extends Component> method
- @internal
- required Component rootComponent,
- required void eventHandler(
- T component
- bool deliverToAll = false,
inherited
Implementation
@internal
void deliverAtPoint<T extends Component>({
required Component rootComponent,
required void Function(T component) eventHandler,
bool deliverToAll = false,
}) {
final children = collectApplicableChildren(
rootComponent: rootComponent,
);
for (final child in children.whereType<T>()) {
continuePropagation = deliverToAll;
eventHandler(child);
if (!continuePropagation) {
CameraComponent.currentCameras.clear();
break;
}
}
}