$cleanupListeners method
void
$cleanupListeners()
Implementation
void $cleanupListeners() {
for (List<Stateful> l in _listeners.values) {
l.removeWhere((i) =>
!(i as Node).$isActive ||
((i as Node).$hasTrait(Lifecycle) && !(i as Lifecycle).$isRunning));
}
}