OnVisitChild typedef
The callback that will be called before processing a child element.
Please note that all children and grandchildren etc. will trigger this,
use element
to check whether a subtree is direct child:
BuildOp(
onVisitChild: (tree, subTree) {
if (subTree.element.parent != tree.element) return;
subTree.doSomething();
},
);
Implementation
typedef OnVisitChild = void Function(BuildTree tree, BuildTree subTree);