visitChildren method

  1. @override
TreeVisitor<Binding> visitChildren(
  1. TreeVisitor<Binding> visitor
)
override

Implementation

@override
TreeVisitor<Binding> visitChildren(TreeVisitor<Binding> visitor) {
  if (visitor._stopped) return visitor;
  visitor(this);

  if (rootBinding != null) {
    rootBinding?.visitChildren(visitor);
  }

  if (childBinding != null) {
    childBinding?.visitChildren(visitor);
  }

  return visitor;
}