prepareScan method

  1. @override
void prepareScan(
  1. BuildContext context
)
override

Prepare for a new scan cycle. Called once before the unified tree walk.

Override to clear accumulated state, issues, highlights, and initialise per-scan accumulators.

Implementation

@override
void prepareScan(BuildContext context) {
  _expensiveNodes.clear();
  _blurChromeOwners.clear();
  _chromeNodeCount = 0;
  _highlights.clear();
  _subtreeSizeStack.clear();
}