eachChildRecursive method

bool eachChildRecursive(
  1. ComponentWalkCallback cb
)

Implementation

bool eachChildRecursive(ComponentWalkCallback cb) {
  if (_children != null) {
    for (final ActorComponent child in _children!) {
      if (cb(child) == false) {
        return false;
      }

      if (child is ActorNode && child.eachChildRecursive(cb) == false) {
        return false;
      }
    }
  }
  return true;
}