debugOnProfilePaint top-level property
getter/setter pair
Callback invoked for every RenderObject painted each frame.
This callback is only invoked in debug builds.
See also:
- debugProfilePaintsEnabled, which does something similar but adds dart:developer.Timeline events instead of invoking a callback.
- debugOnRebuildDirtyWidget, which does something similar for widgets being built.
- WidgetInspectorService, which uses the debugOnProfilePaint
callback to generate aggregate profile statistics describing what paints
occurred when the
ext.flutter.inspector.trackRepaintWidgets
service extension is enabled.
Implementation
ProfilePaintCallback? debugOnProfilePaint;