sendNotificationsForSubscriptions method

void sendNotificationsForSubscriptions(
  1. Map<String, List<AnalysisService>> subscriptions

Send notifications corresponding to the given description of subscriptions. The map is keyed by the path of each file for which notifications should be sent and has values representing the list of services associated with the notifications to send.

This method is used when the set of subscribed notifications has been changed and notifications need to be sent even when the specified files have already been analyzed.


void sendNotificationsForSubscriptions(
    Map<String, List<AnalysisService>> subscriptions) {
  subscriptions.forEach((String path, List<AnalysisService> services) {
    for (var service in services) {
      _sendNotificationForFile(path, service);