externalHierarchy property

  1. @protected
HierarchyService? get externalHierarchy

External hierarchy service from the parent application. Override in subclass to provide access to the widget's externalHierarchy. Returns null by default (no external hierarchy).

Implementation

@protected
HierarchyService? get externalHierarchy {
  // Return the adapter's hierarchy if available
  if (schematicAdapter != null) {
    return schematicAdapter!.hierarchy;
  }
  return null;
}