deliverToComponents<T extends Component> method

  1. @internal
void deliverToComponents<T extends Component>(
  1. Component rootComponent,
  2. void eventHandler(
    1. T component
    )
)
inherited

Implementation

@internal
void deliverToComponents<T extends Component>(
  Component rootComponent,
  void Function(T component) eventHandler,
) {
  for (final child in rootComponent
      .descendants(reversed: true, includeSelf: true)
      .whereType<T>()) {
    continuePropagation = false;
    eventHandler(child);
    if (!continuePropagation) {
      break;
    }
  }
}