all method

Implementation

bool all(ComponentWalkCallback cb) {
  if (cb(this) == false) {
    return false;
  }

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

      if (child is ActorNode) {
        child.eachChildRecursive(cb);
      }
    }
  }

  return true;
}