eachChildRecursive method

bool eachChildRecursive (
  1. ComopnentWalkCallback cb
)

Implementation

bool eachChildRecursive(ComopnentWalkCallback 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;
}