debugOnRebuildDirtyWidget top-level property
read / write
Callback invoked for every dirty widget built each frame.
This callback is only invoked in debug builds.
- debugPrintRebuildDirtyWidgets, which does something similar but logs to the console instead of invoking a callback.
- debugOnProfilePaint, which does something similar for RenderObject painting.
- WidgetInspectorService, which uses the debugOnRebuildDirtyWidget
callback to generate aggregate profile statistics describing which widget
rebuilds occurred when the
ext.flutter.inspector.trackRebuildDirtyWidgetsservice extension is enabled.