visitChildren method
Visit the ProviderElements of providers that are listening to this element.
A provider is considered as listening to this element if it either watch or listen this element.
This method does not guarantee that a dependency is visited only once. If a provider both watch and listen an element, or if a provider listen multiple times to an element, it may be visited multiple times.
Implementation
void visitChildren(void Function(ProviderElementBase element) visitor) {
for (var i = 0; i < _dependents.length; i++) {
visitor(_dependents[i]);
}
for (var i = 0; i < _subscribers.length; i++) {
visitor(_subscribers[i].dependentElement);
}
}