deliverAtPoint<T extends Component> method

  1. @internal
void deliverAtPoint<T extends Component>({
  1. required Component rootComponent,
  2. required void eventHandler(
    1. T component
    ),
  3. 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;
    }
  }
}