const WidgetTreeChangeDetector({ super.key, required this.child, required this.onWidgetTreeChange, });