checkElement method

  1. @override
void checkElement(
  1. Element element
)
override

Check a single element during the unified tree walk.

Called once per element in depth-first order. Detectors inspect the element's widget/render object and accumulate findings. Local nested walks (e.g. counting children) are permitted within this method.

Implementation

@override
void checkElement(Element element) {
  _subtreeSizeStack.add(0);
}