debugPrintScheduleBuildForStacks top-level property
Log the call stacks that mark widgets as needing to be rebuilt.
This is called whenever BuildOwner.scheduleBuildFor adds an element to the dirty list. Typically this is as a result of Element.markNeedsBuild being called, which itself is usually a result of State.setState being called.
To see when a widget is rebuilt, see debugPrintRebuildDirtyWidgets.
To see when the dirty list is flushed, see debugPrintBuildScope.
To see when a frame is scheduled, see debugPrintScheduleFrameStacks.
bool debugPrintScheduleBuildForStacks = false;