dispatchNotifications method

void dispatchNotifications()

Actually dispatches notifications to listeners.

This is called internally by the batching system. Avoid calling directly.

Implementation

void dispatchNotifications() {
  // Create a copy to allow modifications during iteration
  final listeners = List<VoidCallback>.from(_listeners);
  for (final listener in listeners) {
    if (_listeners.contains(listener)) {
      listener();
    }
  }
}