removeDependent method

  1. @protected
  2. @mustCallSuper
void removeDependent(
  1. Element dependent
)

Called by Element.deactivate to remove the provided dependent Element from this InheritedElement.

After the dependent is removed, Element.didChangeDependencies will no longer be called on it when this InheritedElement notifies its dependents.

Subclasses can override this method to release any resources retained for a given dependent.

Implementation

@protected
@mustCallSuper
void removeDependent(Element dependent) {
  _dependents.remove(dependent);
}