deliverToComponents<T extends Component> method
- @internal
- Component rootComponent,
- void eventHandler(
- 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;
}
}
}