forEachChild method

void forEachChild(
  1. DescentCallback cb
)
inherited

Implementation

void forEachChild(DescentCallback cb) {
  for (final child in children) {
    if (cb(child) == false) {
      continue;
    }

    // TODO: replace with a more robust check.
    if (child is ContainerComponent) {
      child.forEachChild(cb);
    }
  }
}