setDependencies method

  1. @protected
void setDependencies (Element dependent, Object value)

Sets the value returned by getDependencies value for dependent.

Each dependent element is mapped to a single object value which represents how the element depends on this InheritedElement. The updateDependencies method sets this value to null by default so that dependent elements are rebuilt unconditionally.

Subclasses can manage these values with updateDependencies so that they can selectively rebuild dependents in notifyDependents.

This method is typically only called in overrides of updateDependencies.

See also:


void setDependencies(Element dependent, Object value) {
  _dependents[dependent] = value;