visitChildren method

  1. @override
void visitChildren({
  1. required void elementVisitor(
    1. ProviderElementBase element
    ),
  2. required void notifierVisitor(
    1. ProxyElementValueNotifier element
    ),
})
override

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

@override
void visitChildren({
  required void Function(ProviderElementBase element) elementVisitor,
  required void Function(ProxyElementValueNotifier element) notifierVisitor,
}) {
  super.visitChildren(
    elementVisitor: elementVisitor,
    notifierVisitor: notifierVisitor,
  );
  notifierVisitor(_notifierNotifier);
}