onDependencyRemoved method Null safety

void onDependencyRemoved(
  1. Component dependent
)
inherited

Something we depend on has been removed. It's important to clear out any stored references to that dependency so it can be garbage collected (if necessary).

Implementation

void onDependencyRemoved(Component dependent) {}