getSub<S extends EventFractal> method

S? getSub<S extends EventFractal>(
  1. String name
)
inherited

Implementation

S? getSub<S extends EventFractal>(String name) {
  if (sub[name] case S f) return f;
  HierarchyF? f = this;
  while (f is ExtendableF) {
    f = (f as ExtendableF).extend;
    if (f?.sub[name] case S h) return h;
  }
  return null;
}